karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Lang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-2075) Shutdown Karaf but the bundle stop is not follow the start-level
Date Tue, 18 Dec 2012 09:24:15 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534779#comment-13534779
] 

Bill Lang commented on KARAF-2075:
----------------------------------

Well, We see code of org.apache.karaf.shell.osgi.Shutdown.java
it uses these codes to stop karaf 
Bundle bundle = getBundleContext().getBundle(0);
bundle.stop();
it did not calling setActiveStartLevel(0) before karaf shutdown and stop system bundle, so
could you check the code? 
                
> Shutdown Karaf but the bundle stop is not follow the start-level 
> -----------------------------------------------------------------
>
>                 Key: KARAF-2075
>                 URL: https://issues.apache.org/jira/browse/KARAF-2075
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.3.0
>         Environment: linux or win7
>            Reporter: Bill Lang
>
> I set a bundle start level to bundles as this:
> Name         Level
> bundle-a     81
> bundle-b     82
> bundle-c     83
> When I use osgi:start-level 80, bundles closed as order 83,82,81 and this is what I expected.
> When I use shutdown, bundles closed as order 81,83,82 and this tis not what I expected.
> Could you make the bundles stop follow the reverse order of start level when karaf shutdown

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message