Access Service from another AEM bundle | Community
Skip to main content
Level 2
Nov 8, 2019 2:11 PM UTC
Solved

Access Service from another AEM bundle

Hi,

I have two aem projects say  A and B. I need to access the service in project A from B. Can you please let me know how to achieve this.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
sssfaffaaaAccepted solution
Employee
Nov 8, 2019 3:04 PM UTC

ServiceReference sr = bundleContext.getServiceReference(YourService.class.getName());

1 reply

sssfaffaaaAccepted solution
Employee
Nov 8, 2019 3:04 PM UTC

ServiceReference sr = bundleContext.getServiceReference(YourService.class.getName());

Translate