Developing OSGi applications

You can develop bundles, optionally group them into composite bundles, and add them to an OSGi application or a bundle repository.

Before you begin

Note: OSGi application support is deprecated in WebSphere Application Server traditional because OSGi applications depend on a technology that is no longer included in Equinox 4.4.0 and later. There is no strategic alternative in WebSphere Application Server traditional. To continue to use OSGi applications, migrate your applications to Liberty. In Liberty, OSGi applications run as Subsystems, which are a standard form of OSGi application. For more information, see Migrating applications to Liberty.

Procedure

  • Develop an OSGi application.

    As an introduction to developing an OSGi application, you can develop a simple HelloWorld OSGi application, which consists of two bundles. One bundle defines a hello service, and the other is a client bundle that uses this service to produce the message OSGi Service: Hello World!.

  • Develop a composite bundle.

    A composite bundle groups shared bundles together into aggregates. It provides one or more packages at specific versions to an OSGi application. You can also extend a deployed application by adding one or more composite bundles to the composition unit for the application.

  • Convert existing applications to OSGi applications.

    You can convert an enterprise application or a Spring application to an OSGi application.