cool, thanks, it works!

but i have another question about it. 

if i run  "start bundleID", the bundle does not work. it can only work under
the command "refresh bundleID".
i have met such problem by few Bundles, maybe anyone know the reason?

thanks.



Sahoo wrote:
> 
> for (Bundle b : bundleContext.getBundles()) {
>    int state = b.getState();
> }
> 
> 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.
>>   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to