How to invoke another OSGI bundle servlet from different OSGI bundle? | Community
Skip to main content
October 16, 2015
Solved

How to invoke another OSGI bundle servlet from different OSGI bundle?

  • October 16, 2015
  • 11 replies
  • 3344 views

Hi there,

i just wondering How to invoke another OSGI bundle servlet from different OSGI bundle?

 

Thanks a lot.

Best regards,

Brian

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 smacdonald2008

I got this use case to work. The following pic shows an AEM web page that displays data returned from a Sling Servlet (the Sling Servlet invoked by an AEM Service):

[img]SlingInvoke.png[/img]

Here is the community article that steps you through this use case:

https://helpx.adobe.com/experience-manager/using/HttpClient_AEM.html

Only use this use case if you have to invoke a servlet from a service. It better to invoke the servlet from a web page using AJAX - as talked about here:

http://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html

11 replies

October 16, 2015

When i delete below element within POM file, run maven command "mvn clean install" very well.

<dependency> <groupId>com.day.commons.osgi.wrapper</groupId> <artifactId>com.day.commons.osgi.wrapper.commons-httpclient</artifactId> <version>3.1.0.018</version> <scope>provided</scope> </dependency>

However, if i add the above element within POM file, run maven command appears error as below immediately.

[img]mvnerror.png[/img]