Connect one machine to another in AEM scheduler. | Community
Skip to main content
Nandujee
Level 3
April 7, 2017
Solved

Connect one machine to another in AEM scheduler.

  • April 7, 2017
  • 6 replies
  • 2273 views

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.
Best answer by joerghoh

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
April 7, 2017

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

MC_Stuff
Level 10
April 8, 2017

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,

Nandujee
NandujeeAuthor
Level 3
April 8, 2017

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?

Nandujee
NandujeeAuthor
Level 3
April 8, 2017

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?

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
April 9, 2017

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

Jörg

MC_Stuff
Level 10
April 9, 2017

Hi Nanda,

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

Thanks,