Hi Igor, with which Karaf version (in order to try to reproduce) ?
Regards JB On 10/08/2014 10:13 AM, Igor Raizin wrote:
Hello! I gave a try to extend the bundle state in bundle:list command. I tried to implement the /org.apache.karaf.bundle.core.BundleStateService/ in the same way as /org.apache.karaf.bundle.core.internal.BlueprintListener/ provides state for the blueprint. At the end I faced the issue... A bundle is in /Active /state, blueprint started successfully and my /BundleStateService/ returns /Failure/ state -> the result state in bundle:list is /Active, /but I expect to see /Failure/. In debug mode I saw in /org.apache.karaf.bundle.core.internal.BundleServiceImpl#getInfo /the /BlueprintListener /is the last in list to check the state and it overrides the /Failure /state from my /BundleStateService/.... Is this a bug or it was done on purpose? If the second than if there any other way to show the bundle state /Failure /basing on some condition other than blueprint errors or OSGI bundle state? Thanks for your help. WBR, Igor
-- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
