We are storing some information in AEM which we want to "read" and display in our internal systems. Can we query AEM via endpoints that are exposed or we just use a .json OOB selector for the nodes.
What is an ideal way to read data in AEM from an external system
Solved! Go to Solution.
Views
Replies
Total Likes
AEM supports REST. Write a custom sling servlet that uses QueryBuilder API or JCR SQL to produce a result set. Then have your external system perform a GET request to get JCR data. The servlet will be on pub instance as well.
Have a look here: https://docs.adobe.com/docs/en/aem/6-1/develop/search/querybuilder-api.html
Via REST you can get everything you want in AEM.
Views
Replies
Total Likes
But typically the 4502 port is not open for outside world. Our AEM instance in EC2 cloud and we are quering from outside. I am guessing we are only allowed access through dispatcher.
Is that the only way?
Views
Replies
Total Likes
AEM supports REST. Write a custom sling servlet that uses QueryBuilder API or JCR SQL to produce a result set. Then have your external system perform a GET request to get JCR data. The servlet will be on pub instance as well.
That makes perfect sense. Thanks
Views
Replies
Total Likes
If you are using it internally, we can go with Query but however if it has to be consumed by an external system its better to expose it as a json via a service
The default .json rendition is a good starting point. Everything on top depends pretty much on the requirements you have.
kind regards,
Jörg
Views
Replies
Total Likes
Views
Likes
Replies