Skip to main content
Nandujee
Level 3
Apr 7, 2017 12:46 PM UTC
Solved

Connect one machine to another in AEM scheduler.

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Apr 9, 2017 8:26 PM UTC

You can connect to the remote AEM instance using HTTP. There is not specific API which does that for you.

Jörg

6 replies

vjetty
Level 4
Apr 7, 2017 3:28 PM UTC

Hi, Nandu

Make sure all necessary jars are present. Please go through this post.

http://experience-aem.blogspot.ch/2015/05/aem-6-sp2-accessing-crx-remotely-using-jcr-remoting-davex.html

Thanks! 

Vamsi

Translate
MC_Stuff
Level 10
Apr 8, 2017 3:54 AM UTC

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,

Translate
Nandujee
NandujeeAuthor
Level 3
Apr 8, 2017 4:30 PM UTC

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?

Translate
Nandujee
NandujeeAuthor
Level 3
Apr 8, 2017 4:42 PM UTC

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?

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Apr 9, 2017 8:26 PM UTC

You can connect to the remote AEM instance using HTTP. There is not specific API which does that for you.

Jörg

Translate
MC_Stuff
Level 10
Apr 9, 2017 10:11 PM UTC

Hi Nanda,

     Make use of HttpClient api. Sample for api refer https://helpx.adobe.com/experience-manager/using/HttpClient_AEM.html

Thanks,

Translate