aspose file tools*
The moose likes Other Application Frameworks and the fly likes OSGI : Exporting services defined by @Service annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "OSGI : Exporting services defined by @Service annotation" Watch "OSGI : Exporting services defined by @Service annotation" New topic
Author

OSGI : Exporting services defined by @Service annotation

Craig Taylor
Ranch Hand

Joined: Jul 17, 2008
Posts: 64
If I have a class defined as :

.


how can I define my osgi bundle to pick up and export all services with the @Service annotation?
Craig Taylor
Ranch Hand

Joined: Jul 17, 2008
Posts: 64
In search of a solution to my problem I've written a service activator which is essentially just :



however, I'm getting a statement that the context has not yet been initialized. From the servicemix logs it appears that the context has already been loaded, or at least, a significant chunk has.

I guess the question now boils down to : How can I delay activation of the ServiceActivator until the application context has finished?

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OSGI : Exporting services defined by @Service annotation
 
Similar Threads
Sweet spot of Spring-DM compared to other implementations?
Spring DM versus JSR-291
OSGI / Equinox ?
OSGi as a Java standard
OSGi ain't the only way to modularize your apps