OSGi#
Open Services Gateway Initiative
Resources#
- OSGi Alliance Home
- OSGi Core Release 5 Specification
- OSGi In Practice (Draft)
- Developing enterprise OSGi applications for WebSphere Application Server
- Manifest Headers
- Tooling
- Building Modular Cloud Apps with OSGi
- Apache Felix, an implementation of the OSGi R4 Service Platform and other interesting OSGi-related technologies
- Apache Karaf, a small OSGi based runtime
- Apache Aries, a set of pluggable Java components enabling an enterprise OSGi application programming model
- Pax Runner, a tool to provision OSGi bundles in all major open source OSGi framework implementations (Felix, Equinox, Knopflerfish, Concierge)
- Equinox, a set of bundles that implement various optional OSGi services and other infrastructure for running OSGi-based systems.
- Apache ACE, an (OSGi based) software distribution framework to centrally manage and distribute software components
OSGi Tutorial#
I started a simple exercise (see OSGi In Practice above).
Starting with Eclipse Kepler, downloaded the Equinox runtime first from http://download.eclipse.org/equinox/
.
Unzip it to /usr/local/equinox-sdk-keplersr1.
Then add the Equinox named User Library to Eclipse, pointing to /usr/local/equinox-sdk-keplersr1/plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar .
Create a new Java project named "OSGi Tutorial", and make sure you use the above User Library.
Create a new runtime configuration, new Java Application, enter search this should find org.eclipse.core.runtime.adaptor.EclipseStarter and program arguments -console -configuration runtime. However, this does not work, you have to add the -consoleLog, or the (error) logging will go to a file by default.