I am creating the content nodes through the stand alone Java application using JCR API. Now, I want to replicate those. I know we can use the Replication API for this but I want to know how to use this API in the stand alone java application. Please help.
These Java APIs need to be used within AEM within an OSGi.
One way you can work around this is to write an AEM Sling Servlet that uses these APIs. Then from your Java client - invoke the Sling Servlet via an HTTP GET request.