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 Spring in Action this week in the Spring 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,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: OSGI : Exporting services defined by @Service annotation