No. Only active bundles can provide services. And in fact, bundles can choose to register or unregister services whenever they like, as long as they remain active, so you can't assume the bundle will provide a service simply because it is active.
As the consumer of a service you shouldn't care about the state of the bundle it comes from, or indeed which bundle it comes from. Attempts to do this constitute a very bad "code smell" in OSGi. Neil On Mon, Feb 25, 2013 at 7:14 PM, Dhiego Abrantes de Oliveira Martins < [email protected]> wrote: > Hi, > > I need to find the bundle that provides or implements a service > br.com.dhiego.ServiceOne, for example. > > If the bundle is running, a service reference is returned, no problems > here. However, if it was stopped, nothing is returned. > > So, I need all bundles, even resolved (stopped, but installed) bundles that > provides or implements this service. > > It's possible? How can I do? Anyone can help-me? > > []'s > > Dhiego >

