DOSGi Single Bundle Distribution

Setting up your OSGi container

Setting up the single-bundle distribution is really simple, see below.

Prerequisites for the single-bundle distribution:

The single-bundle distribution requires some of the interfaces of the OSGi compendium specification. These are provided with the Equinox and Felix OSGi distributions, but not installed by default.

Setting up Felix

The compendium interfaces can be downloaded from the following various places, the easiest is probably from Maven Central, for example:
"g! install http://repo1.maven.org/maven2/org/osgi/org.osgi.compendium/4.2.0/org.osgi.compendium-4.2.0.jar".
(Note: this step is not required for DOSGI RI 1.3)

To set up Felix you can follow these steps:
Verified with: Felix 4.0.2 and DOSGI RI 1.3

However, you can also change the conf/config.properties file to automatically load these bundles. This approach is described in the Multi Bundle Setup page.

Setting up Equinox

The compendium interfaces are part of the Equinox/Eclipse distribution and can be found in a file called plugins/org.eclipse.osgi.services_3.2.0.v20090520-1800.jar (the timestamp could vary), for example:
"osgi> install file:plugins/org.eclipse.osgi.services_3.2.100.v20100503.jar"
(Note: this step is not required for DOSGI RI 1.3)

To set up Equinox you can follow these steps:
Verified with: Eclipse 3.6.2

However, you can also create a config.ini file to automatically load these bundles. This approach is described in the Multi Bundle Setup page.

Using Equinox from within the Eclipse IDE

This option is really handy for debugging. Verified with: Eclipse 3.5M4
Setting up Eclipse for Running and Debugging Distributed OSGi