[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] Re: Why my bundle is always in state resolved initially

Oliver Pfau wrote:
My problem is that the bundles in the folder plugins are always in the state resolved after starting the osgi framework. I have to start them manually. The lazy attribute in the manifest.mf is not set. So according to the spec the bundles should go to the active state. Or I am wrong ?

I stumbled into this as well, and it turns out bundles are not auto-started by default (and neither is there a way to specify that a bundle should be auto-started in its manifest).


Some options:

- If you have a .product file, you can list the bundle there with autoStart=true.

- Edit the platform's bundles.info file (last value indicates started or not).

- Create a p2.inf file in the bundle's META-INF with the following contents:

instructions.configure = setStartLevel(startLevel:4);
markStarted(started: true);


Note that once a bundle is started (manually or otherwise), the platform should remember the state across sessions.