[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] Bundle lazy activation
- From: Thomas Watson <tjwatson@xxxxxxxxxx>
- Date: Wed, 28 Sep 2011 08:13:54 -0500
- Delivered-to: firstname.lastname@example.org
From the console, what state are the bundles in after calling refresh? I suspect they are in the STARTING (actually lazy starting) state. This means they are waiting for the first class load and then will be acivated. In equinox we have had lazy activation since day one, before it was in the OSGi specification. As such we do have a compatibility option which is enabled by default that marks any lazy activate for start once it is installed. Also see p2 bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=177641.
I suspect you are seeing a case where the two lazy activation bundles you installed being marked for using the lazy start policy upon installation which makes them ready to start as soon as they get their first class load.
"Todorova, Katya" ---09/28/2011 06:08:36 AM---Hi guys,
"Todorova, Katya" <katya.todorova@xxxxxxx>
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>,
09/28/2011 06:08 AM
[equinox-dev] Bundle lazy activation
Iâm experiencing a strange bundle âauto startâ behavior â letâs have two bundles which are declared to be lazy activated, first providing a class referenced by the second one.
After installing them and calling refresh, I start the âconsumerâ (via console command) which in turn activates the other one. I checked the spec and it says:
âA lazy activation policy indicates that the bundle, once started, must not be activated until it receives the first request to load a classâ
Iâm confused because I havenât started the provider explicitly and I expected it to be in resolved state and not to be activated at all. Do I miss something?
Test bundles attached.
[attachment "TestLazy_18.104.22.168109281137.jar" deleted by Thomas Watson/Austin/IBM] [attachment "TestLazyConsumer_22.214.171.124109281137.jar" deleted by Thomas Watson/Austin/IBM] _______________________________________________
equinox-dev mailing list