AEM4BEGINNER blog is for Beginners who are interested in learning Adobe Experience Manager (AEM) aka Adobe CQ5 from basics. The Information provided in this blog is for learning and testing purposes only. Here, I have posted the information which I know or gathered from different sources.
Invoking AEM Sling Servlets using Apache HTTP APIs
You can invoke a Sling Servlet deployed within Adobe Experience Manager by using Java APIs located in the org.apache.commons.httpclient.HttpClient package. This Java package contains classes that let you perform HTTP operations such as invoking a Servlet's doGet method. For information about this Java package, see Package org.apache.commons.httpclient.
Assume that you have a business requirement to invoke a deployed AEM Sling Servlet from another AEM service defined within an OSGi bundle. You can perform this use case by using an org.apache.commons.httpclient.HttpClient object.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.