Hello there,
I have following scenario
I need to create, build and download a package on machine XX and install the package (which is created on machine XX) in other machine YY.
All this operation should be done using AEM scheduler.
In the scheduler, I am using JcrPackageManager to create package in machine XX. I blocked on connecting another machine YY.
Can anyone help me how to connect one machine to another machine in AEM scheduler.
I have used Repository repository = JcrUtils.getRepository("http://<<machine IP>:4502/crx/server");
But I got
Unable to access a repository with the following settings:
org.apache.jackrabbit.repository.uri: http:// <<machine IP>:4502/crx/server
Your assistance in this matter would be greatly appreciated
Thanks
Nanda
Solved! Go to Solution.
Views
Replies
Total Likes
You can connect to the remote AEM instance using HTTP. There is not specific API which does that for you.
Jörg
Views
Replies
Total Likes
Hi, Nandu
Make sure all necessary jars are present. Please go through this post.
Thanks!
Vamsi
Views
Replies
Total Likes
Hi Nanda,
I would make use of rest service of package manager to meet this requirement. Not sure you need webdav approach for this.
Regards,
Views
Replies
Total Likes
Thanks for the reply Vamsi,
I need to use in AEM scheduler, instead standalone java.
As mentioned on the blog. It can used in standalone application.
Is there any way I can use it AEM servlet?
Views
Replies
Total Likes
Thanks MC,
still I can use JcrPackageManager to package it. My problem here to connect another machine.
Is there any way I can connect other machine using any API in AEM scheduler or servlet?
Views
Replies
Total Likes
You can connect to the remote AEM instance using HTTP. There is not specific API which does that for you.
Jörg
Views
Replies
Total Likes
Hi Nanda,
Make use of HttpClient api. Sample for api refer https://helpx.adobe.com/experience-manager/using/HttpClient_AEM.html
Thanks,
Views
Replies
Total Likes