Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Connect one machine to another in AEM scheduler.

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

Jörg

View solution in original post

6 Replies

Avatar

Level 9

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,

Avatar

Level 4

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?

Avatar

Level 4

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?

Avatar

Correct answer by
Employee Advisor

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

Jörg