Hi all,
Our client is using AEM 5.6.1 deployed in JBOSS and they are trying to create, upload and finally replicate package pragmatically.
Code snippet below :
PostMethod postMethod = this.createPostMethod(this.ctx.getTargetURLContext() + "/crx/packmgr/service/.json"+ PACKAGES_ROOT_PATH
+ this.ctx.getGelName()
+ PATH_SEP
+ this.ctx.getPackageFileName());
postMethod.setRequestEntity(new MultipartRequestEntity(
new Part[] {
new StringPart("cmd", "replicate")
},
postMethod.getParams()));
And response i am getting : {"success":true,"msg":"Package is replicated asynchronously"}
The message i am getting in JSON response is "Package is replicated asynchronously" , means that installed package is now successfully queued up but why replication is not working here.
Please let me know what could be the issue here.