The update site contains:
- OSGi Bundle Facet feature that introduces:
- A new facet OSGi Bundle for Dynamic Web, JPA and Utility projects.
- Wizard for converting WTP standard projects to OSGi Enterprise bundle projects:
- Dynamic Web projects to Web Application Bundle projects
- JPA projects to Persistent Bundle projects
- Utility projects and simple Java projects to OSGi Bundle projects
- Both options modify project's MANIFEST.MF in order to become a valid OSGi bundle.
The facet may be enabled during the project creation or after that from the Properties page of the project. The wizard is available from project's context menu Configure > Convert to OSGi Bundle Projects...
Note that you may need to adjust your target platform accordingly.
- WAR Products feature which provides WAR deployment for Equinox based applications
Create new Web Application Bundle
- Call the New Dymanic Web Project wizard: New > Project... > Web > Dynamic Web Project
- Enter the necessary project information like Project name, Target runtime, etc.
- Add the OSGi Bundle facet in the Configuration:
- Click on the Modify... button in the Configuration group.
- Choose the OSGi Bundle facet in the Project Facets dialog and click OK.
- Click Finish to create the Web Application Bundle project.
Configuring the Bundle Information and Bundle Dependency Graph editor parts
The Bundle Information and Bundle Dependency Graph editor parts are new features available since milestone 0.2 M3 (Juno M3). They appear in the server editor of the OSGi Framework server adapters (like Equinox, Felix and Knopflerfish). These editor parts display the state and the dependencies of the bundles that are installed in the OSGi Framework. They use the standard OSGi JMX Management Model for retrieving the necessary information from the OSGi Framework. The below steps shows how to enable OSGi JMX for your OSGi Framework.
Adding OSGi JMX Provider
First, you need to install an OSGi Bundle your OSGi Framework that will provide and register the required OSGi JMX MBeans. There are several open source implementations that can be used:
The easiest one for setting up is the one by KnowHowLab:
- Download the jmx-1.0.2 bundle or a newer version.
- Save the bundle in a separate directory on the local filesystem.
- Open the server editor of the Libra Launcher server adapter (like Equinox or Felix).
- Switch to the Target Platform Profile editor part.
- Add the directory with the downloaded bundle to the target platform.
- Save the editor.
Gemini and Aries implementations can be used too, but there must be additional bundle to be installed in the framework that will trigger the registration of the JMX MBeans.