You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by dishmily <en...@hotmail.com> on 2008/05/11 12:35:10 UTC

Re: How to get the status of all bundles,either they actived or not


according to OSGI specification, a bundle can only be started when its state
is resolved, that is, if the state of bundle is Active and one wants to
start it, it should be stopped at first. when its state is changed to
RESOLVED, it can be started by using command Start Bundle ID.


dishmily wrote:
> 
> as every bundle uses Bundlescontext.registerService to register itself
> into OSGI service, and the mothod "Servicechanged" for ServiceListener can
> only get the infomation of the bundle, just when this bundle
> installed,stopped or uninstalled. After bundle event has happened, the
> ServiceListener can never get the status of bundles again. my question is:
> 
> if few bundles are actived and few bundles are resolved, is there some
> methods to get the status of all these bundles? for example: Bundle_1,
> Bundle_2 are actived and Bundle_3 is resolved. After i implemente the
> method, i should get the result that Bundle_1,Bundle_2 and Bundle_3 are
> installed and the Status of Bundle_1, Bundle_2 is actived, Status of
> Bundle_3 is resolved.
> 
> thanks.
> 

-- 
View this message in context: http://www.nabble.com/How-to-get-the-status-of-all-bundles%2Ceither-they-actived-or-not-tp16988568p17170430.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org