The Future: OSGi Bundle Template in NetBeans IDE?
By Geertjan-Oracle on Feb 14, 2009
There would be a very long list of different kinds of OSGi bundles there, where currently I only have a basic OSGi bundle. The basic OSGi bundle template creates this source structure in the IDE:
In other words, felix.jar is on the bundle's classpath, so that one can start coding against it right away. A simple BundleActivator is included to get you started. The manifest holds keys/values that are relevant to OSGi, instead of the typical NetBeans module keys/values. For example, the BundleActivator is registered there by the template. Then, when you build the bundle (right-click the project and choose Build), the JAR is created (visible in the Files window), which is then the OSGi bundle that can then be dropped into any application that runs on OSGi. Such as GlassFish.