Hi ,
We have requirement to use our existing java web application to create/modify nodes , templates and pages through our java web application remotely into the AEM CRX repository. Like creating /updating nodes through cURL command. Instead of using cURL commands , we are planning to write java codes to make connection with existing AEM CRX server and doing the same operation such as create/modify content in the existing CQ pages.
We are trying to connect AEM CRX server from the J2EE web application/ otherwise traditional java servlet and not using any frameworks.
However i am getting lot of exceptions , eventhough i have included all the necessary dependency files in maven pom.xml.
Here is the link that i used as reference to connect to CRX server externally.
Here all my questions,
is there any way that we connect AEM CRX repository through the traditional Java web application?
can we create/update existing AEM pages through remotely which means through extenal java applications ,which is running in different web app server?
Thanks
Arun
Solved! Go to Solution.
Views
Replies
Total Likes
I will test against AEM 6.2 and post back. But as I recall, you need to include the JAR in your apps class path for the connection to be successful. It will compile with POM dependency, but won't connect without adding JAR to class path.
Views
Replies
Total Likes
To connect to AEM from a Java client, you use JCR API. You need to include the Jackrabbit JARin your app class path as shown in the article. You can can create nodes, modify them, and so on via the JCR API.
Views
Replies
Total Likes
If you do not add the correct Jackrabbit JAR into your class path, you will get an exception.
Views
Replies
Total Likes
I am trying to connect AEM version 6.2 .
Which version of JCR and jackrabbit jar is preferable ?
JCR 2.0 and jackrabbit-standalone-2.6.5.jar ??
Views
Replies
Total Likes
I will test against AEM 6.2 and post back. But as I recall, you need to include the JAR in your apps class path for the connection to be successful. It will compile with POM dependency, but won't connect without adding JAR to class path.
Views
Replies
Total Likes
okie.. i will try that too.
Views
Replies
Total Likes
It worked . i have added jackrabbit-standalone-2.6.5.jar into my classpath (web-int/lib) folder and now it's connecting .
Thanks Mac!!!
Views
Replies
Total Likes
Views
Likes
Replies