Hi,

On 05.05.2010 19:02, Jackson, Bruce wrote:
> A quick question:
> 
> My initial platform startlevel is set to 3.
> If I install a bundle using:
> 
> Bundle b = BundleContext.installBundle();
> and then use StartLevel.setBundleStartLevel(b, 5);
> 
> what should I expect to happen if I then change the framewoork start level
> to 10? The spec seems to be unclear about whether my bundle should
> automatically be started or not.

IIRC the start level service will only start your bundle if it has been
permanently marked  started before. Since you just installed the bundle
but did not start it, I would expect it to not be started if the system
goes into start level 10.

Conversely if you do

  * install
  * set start level
  * start

then the bundle would be permanently marked started but not actually be
started while in start level 3. only when upping the framework to start
level ten will the bundle be started when the framework is on starlevel 5.

Regards
Felix

> 
> Thanks
> 
> Bruce
> 
> 

Reply via email to