For the simple hello-world OSGi application, the service bundle declares the HelloWorldEBA interface, and exports it as an OSGi service.
A bundle, the modular unit in the OSGi model, is a JAR file that includes the OSGi application metadata. This metadata is defined in the manifest file of the JAR file, META-INF/MANIFEST.MF.
IBM® Rational® Application Developer Version 8 provides graphical support for creating and packaging bundles. The sample procedure below uses this tool. You can also use other tools, and the steps are adaptable to other tools.
This sample procedure builds a bundle called HelloWorldEBA interface, and exports it as an OSGi service. The exported service is used by client bundle Client, as described in Creating a client bundle.
Service. This bundle declares theYou can now create the client bundle that uses the HelloWorldEBA service.