Guillaume, Could you give advice on the orderly shutdown that I am facing with?
http://karaf.922171.n3.nabble.com/Orderly-shutting-down-services-td4027336.html This may give some may hint on how to tackle this issue Thanks -D On Wed, Jan 16, 2013 at 11:38 PM, Guillaume Nodet <[email protected]> wrote: > > > > On Thu, Jan 17, 2013 at 2:51 AM, Dan Tran <[email protected]> wrote: >> >> According to my experience the start-level is set to >> 'karaf.startlevel.bundle' if not specify in the feature xml file. > > > Yes, for bundles, not for the framework. > >> >> >> Also, what is the shutdown sequence, just like start up, but going >> backward from org.osgi.framework.startlevel.beginning to 0? > > > Exactly. And stopping bundles in the decreasing start level order. > >> >> >> does the shutdown ensure each start-level completely shutdown before >> moving on to the next downward level? I am asking this question, is >> because i am having a unordering shutdown behavior > > > Yes, activators are called in order and events are STOPPING events are sent > synchronously. > However, STOPPED bundle events are sent asynchronously iirc. > >> >> >> Thanks >> >> -Dan >> >> On Wed, Jan 16, 2013 at 2:03 PM, Guillaume Nodet <[email protected]> wrote: >> > The way the start level service is that when the framework boots, it >> > goes >> > from 0 to the value specified by >> > org.osgi.framework.startlevel.beginning. >> > At each level, the start level service will start bundles on that level. >> > I think the default value is 1 if not otherwise specified. >> > >> > >> > On Wed, Jan 16, 2013 at 10:57 PM, Dan Tran <[email protected]> wrote: >> >> >> >> I understand that when user does not specify the start-level of a >> >> bundle in the feature file, it is default to the value of >> >> karaf.startlevel.bundle ( which is 80) >> >> >> >> However, what is the purpose of >> >> org.osgi.framework.startlevel.beginning ?? ( max start-level allowed? >> >> ) >> >> >> >> Thanks >> >> >> >> -Dan >> >> >> >> On Wed, Jan 16, 2013 at 1:49 PM, Jean-Baptiste Onofré <[email protected]> >> >> wrote: >> >> > To be honest, I don't remember why we increased the Karaf start >> >> > level. >> >> > Let >> >> > me dig in the Jira/e-mails ;) >> >> > >> >> > Regards >> >> > JB >> >> > >> >> > >> >> > On 01/16/2013 10:47 PM, Guillaume Nodet wrote: >> >> >> >> >> >> Well, originally, it karaf.startlevel.bundle was at 50, and for some >> >> >> reasons, it kept increasing over time. >> >> >> I think 100 start levels is good enough, but we should lower from 80 >> >> >> back to 50, which would give more room for users. >> >> >> >> >> >> >> >> >> On Wed, Jan 16, 2013 at 9:01 PM, Dan Tran <[email protected] >> >> >> <mailto:[email protected]>> wrote: >> >> >> >> >> >> Yes, I am seeing 2 properties under config.properties >> >> >> >> >> >> org.osgi.framework.startlevel.beginning=100 >> >> >> karaf.startlevel.bundle=80 >> >> >> >> >> >> >> >> >> It would be nice if those 2 are documented in the config file so >> >> >> that >> >> >> other user may able to figure out the issue when the same >> >> >> problem >> >> >> encounter. >> >> >> >> >> >> May be org.osgi.framework.startlevel.beginning should start with >> >> >> higher number so that karaf user would have a longer range to >> >> >> work >> >> >> with? >> >> >> >> >> >> Thanks >> >> >> >> >> >> -D >> >> >> >> >> >> >> >> >> On Wed, Jan 16, 2013 at 11:31 AM, Guillaume Nodet >> >> >> <[email protected] >> >> >> <mailto:[email protected]>> wrote: >> >> >> > That's expecte because the start level of the framework is >> >> >> set >> >> >> to >> >> >> 100. >> >> >> > You can change that in etc/config.properties iirc. >> >> >> > >> >> >> > >> >> >> > On Wed, Jan 16, 2013 at 8:14 PM, Dan Tran <[email protected] >> >> >> <mailto:[email protected]>> wrote: >> >> >> >> >> >> >> >> I just happen to change some of my bundle to start at level >> >> >> > >> >> >> 100 and >> >> >> >> the bundle get 'installed' state and would not go to >> >> >> 'active'. >> >> >> No >> >> >> >> error found in log. Can some one confirm? >> >> >> >> >> >> >> >> May karaf is 2.3.0 >> >> >> >> >> >> >> >> Thanks >> >> >> >> >> >> >> >> -Dan >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > -- >> >> >> > ------------------------ >> >> >> > Guillaume Nodet >> >> >> > ------------------------ >> >> >> > Blog: http://gnodet.blogspot.com/ >> >> >> > ------------------------ >> >> >> > FuseSource, Integration everywhere >> >> >> > http://fusesource.com >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> ------------------------ >> >> >> Guillaume Nodet >> >> >> ------------------------ >> >> >> Blog: http://gnodet.blogspot.com/ >> >> >> ------------------------ >> >> >> FuseSource, Integration everywhere >> >> >> http://fusesource.com >> >> > >> >> > >> >> > -- >> >> > Jean-Baptiste Onofré >> >> > [email protected] >> >> > http://blog.nanthrax.net >> >> > Talend - http://www.talend.com >> > >> > >> > >> > >> > -- >> > ------------------------ >> > Guillaume Nodet >> > ------------------------ >> > Blog: http://gnodet.blogspot.com/ >> > ------------------------ >> > FuseSource, Integration everywhere >> > http://fusesource.com > > > > > -- > ------------------------ > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > ------------------------ > FuseSource, Integration everywhere > http://fusesource.com
