Skip to main content



      Home
Home » Eclipse Projects » Equinox » shutdown framework -> relaunch framework
shutdown framework -> relaunch framework [message #64005] Thu, 23 March 2006 06:05 Go to next message
Eclipse UserFriend
Originally posted by: yavin.gmx.com

Hi,

yesterday I played with the OSGI console of my application server. I
think I'm going to use it as the local admin interface. I tried to
shutdown and relaunch the framework but the relaunch did not start the
bundles configured. Then I tried to start the bundles by hand, but all
bundles stayed in resovled state.

Anybody who has an idea why the framework behaves that way?

Regards, Kai

PS: I'm not using the latest equinox bundles.
Re: shutdown framework -> relaunch framework [message #65876 is a reply to message #64005] Mon, 01 May 2006 16:54 Go to previous messageGo to next message
Eclipse UserFriend
It is likely that the framework start level is not set to the previous
level. Before shutting down the framework run the "sl" command to see
what the start level is set to. By default this should be 6. When you
shutdown, the framework start level is set to 0. Then when you launch
ii is set to start level 1. You should then set the start level back to
the previous level before you shutdown the framework. Use the "setfwsl"
command to set the framework start level.

Tom

Kai wrote:
> Hi,
>
> yesterday I played with the OSGI console of my application server. I
> think I'm going to use it as the local admin interface. I tried to
> shutdown and relaunch the framework but the relaunch did not start the
> bundles configured. Then I tried to start the bundles by hand, but all
> bundles stayed in resovled state.
>
> Anybody who has an idea why the framework behaves that way?
>
> Regards, Kai
>
> PS: I'm not using the latest equinox bundles.
Re: shutdown framework -> relaunch framework [message #65910 is a reply to message #65876] Tue, 02 May 2006 04:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yavin.gmx.com

Tom Watson schrieb:
> It is likely that the framework start level is not set to the previous
> level. Before shutting down the framework run the "sl" command to see
> what the start level is set to. By default this should be 6. When you
> shutdown, the framework start level is set to 0. Then when you launch
> ii is set to start level 1. You should then set the start level back to
> the previous level before you shutdown the framework. Use the "setfwsl"
> command to set the framework start level.

Hey Tom,

thanks for your answer. I tried the "setfwsl" with a value of 6 but some
of my installed bundles didn't restart.
I also tried to increment the start level step by step, but this had no
effect.

There are several bundles that are configured with a start level of 2
but not all of them are started by the framework!? Any idea?

Kai
Re: shutdown framework -> relaunch framework [message #65981 is a reply to message #65910] Tue, 02 May 2006 15:23 Go to previous messageGo to next message
Eclipse UserFriend
My guess is that the bundles which are not restarted are "lazy start"
bundles. The have either Eclipse-LazyStart: true or Eclipse-AutoStart:
true headers. These types of bundles will not get restarted
automatically until they have a class loaded from them.
Re: shutdown framework -> relaunch framework [message #66368 is a reply to message #64005] Wed, 10 May 2006 09:28 Go to previous messageGo to next message
Eclipse UserFriend
hi,

I've just read this and now come up with a similar question. I read an relatively old article "the Eclipse 3.0 platform: adopting osgi technology" which says:

1. "...Eclipse follows a persistent approach; it simply restarts in the same state as that from which it was shut down.".

2. "... the configurator must compare the last-known configuration and the current on-disk configuration, installing or uninstalling bundles accordingly."

Now my experiment:

I start equinox from console:
java -jar startup.jar -noexit -console 3333

now I start a bundle with lazy=false
osgi> start 40

the bundle is activated.

now when I type exit and leave the osgi console I want to reenter and see my bundle with number 40 be activated, but this is not the case. In Felix this just works fine.

the same situation appears, when I uninstall this bundle. the next time I restart the osgi console this bundle is recognized by the configurator and regularly installed. Maybe in the Eclipse IDE the uninstalled Plug-ins/Features are removed from the directory 'plugins'?!?

what is my mistake?

I use the update.configurator and equinox from 3.2M5.

thank you

regards
martin
Re: shutdown framework -> relaunch framework [message #66399 is a reply to message #66368] Thu, 11 May 2006 01:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yavin.gmx.com

Martin Schikowski schrieb:
> Now my experiment:
>
> I start equinox from console:
> java -jar startup.jar -noexit -console 3333
>
> now I start a bundle with lazy=false
> osgi> start 40
>
> the bundle is activated.
>
> now when I type exit and leave the osgi console I want to reenter and see my bundle with number 40 be activated, but this is not the case. In Felix this just works fine.
>
> the same situation appears, when I uninstall this bundle. the next time I restart the osgi console this bundle is recognized by the configurator and regularly installed. Maybe in the Eclipse IDE the uninstalled Plug-ins/Features are removed from the directory 'plugins'?!?

Did you try to use shutdown, launch and the runlevel commands instead of
exiting the console? IMHO entering "exit" exits the console without
shutting down the framework.
Re: shutdown framework -> relaunch framework [message #67423 is a reply to message #66399] Mon, 15 May 2006 09:45 Go to previous message
Eclipse UserFriend
Thanks Kai, I remember the fact, that the console can exit without exiting the framework. With your approach it works, when lazy=false (thanks thomas).

- martin
Previous Topic:Why would a plugin end up as [Installed] and not [Resolved] or [Active]?
Next Topic:What is SCR ?
Goto Forum:
  


Current Time: Tue Apr 29 02:39:43 EDT 2025

Powered by FUDForum. Page generated in 0.10231 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top