Re: how to deploy an Equinox app? [message #84533] |
Wed, 21 March 2007 09:22 |
Eclipse User |
|
|
|
Originally posted by: phperret.work2gather.com
David,
To deploy your bundle you need an OSGi container. There is one in Eclipse, name is Equinox. So you can launch equinox with as a simple command as 'java -jar equinox.jar -console' and then 'start n' where n is the number of your bundle.
There is also a servlet wrapper, bridgelet.war, that allows to do 'warm' deploy of your OSGi service previously developped.
|
|
|
|
Re: how to deploy an Equinox app? [message #84637 is a reply to message #84547] |
Wed, 21 March 2007 10:54 |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
You don't need the equinox console if you don't want it -- just don't specify -console on the command line.
If you want to bring a bundle up, then use the osgi.bundles property or the osgi.bundles line in the config.ini -- that's a list of which bundles are to be started when the OSGi environment comes up, and includes the levels therein.
As for packaging the bundles, you'll need to ensure they live in a plugins\ directory, since that's how Equinox looks by default. You can change it to use full file references in the ogsi.bundles if you want to install it to a different place, or write your own OSGi startup code that will look elsewhere for installing/starting bundles.
Alex.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02462 seconds