Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...

To set up Equinox you can follow these steps:
Verified with: Eclipse 3.5 RC 3

Code Block
.../eclipse>javaeclipse> java -jar plugins/org.eclipse.osgi_3.5.0.v20090520.jar -console
osgi> install file:plugins/org.eclipse.osgi.services_3.2.0.v20090520-1800.jar
Bundle id is 1

osgi> install http://www.apache.org/dist/cxf/dosgi/1.0/cxf-dosgi-ri-singlebundle-distribution-1.0.jar
Bundle id is 2

osgi> start 2
... some log messages may appear...
osgi> ss

Framework is launched.

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.5.0.v20090520
1       RESOLVED    org.eclipse.osgi.services_3.2.0.v20090520-1800
2       ACTIVE      cxf-dosgi-ri-singlebundle-distribution_1.0.0

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 with the Eclipse IDE

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

The Samples

The samples directory contains the these sample projects:

...

Code Block
java -jar plugins\org.eclipse.osgi_3.5.0.v20081201-1815.jar -configuration configuration -console 
... log output ommitted ...
osgi> ss
Framework is launched.

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.5.0.v20081201-1815
1       ACTIVE      org.eclipse.osgi.services_3.2.0.v20081205-1800
2       ACTIVE      cxf-dosgi-ri-singlebundle-distribution

Using Equinox from with the Eclipse IDE

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

...