Access Service from another AEM bundle | Community
Skip to main content
Level 2
November 8, 2019
Solved

Access Service from another AEM bundle

  • November 8, 2019
  • 1 reply
  • 2150 views

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.
Best answer by sssfaffaaa

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

1 reply

sssfaffaaaAdobe EmployeeAccepted solution
Adobe Employee
November 8, 2019

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