Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

OSGI Service reference inside Java main method

Avatar

Level 9

Is there anyway to use the OSGI service inside a java main method?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Yes - you need to make  a Sling Servlet in the OSGi bundle and from Java client - use HTTP operations. See: http://scottsdigitalcommunity.blogspot.ca/2014/03/creating-java-swing-applications-that.html

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Yes - you need to make  a Sling Servlet in the OSGi bundle and from Java client - use HTTP operations. See: http://scottsdigitalcommunity.blogspot.ca/2014/03/creating-java-swing-applications-that.html