PDA

View Full Version : New to osgi + spring dm


lina
May 14th, 2008, 11:00 AM
I am very new to osgi and spring dm.
I followed a tutorial on how to run bundles within eclipse.

When one runs the osgi environment bundle in standalone environment, do you always have to keep the console open for install/uninstall the bundle?

This is the command that I run for running the eclipse equinox.
java -jar org.eclipse.osgi_3.2.0.jar -console

jmcginn
May 14th, 2008, 11:40 AM
Hey lina,

I think most OSGi frameworks have a telnet console option that let's you specify a port that the OSGi framework will listen on. Then you can use a telnet client to connect to the OSGi console and install/uinstall/etc. bundles there.

I think its started with the -console <port #> command line option. I was able to do that with my equinox install and then ran putty to connect to it.

John

Costin Leau
May 15th, 2008, 03:17 AM
The usage of the console is not mandatory - you can use them as some sort of UI but just as well, you can install an different agent that can install bundles for you - one example would be FileInstall from Peter Kriens.
I'm sure there are other variation on this theme.