X

Geertjan's Blog

  • February 15, 2009

The Future: OSGi Bundle Template in NetBeans IDE?

Geertjan Wielenga
Product Manager
Based on Extending GlassFish v3 via the NetBeans Platform's OSGi Support, I imagine a future where the New Project dialog would have this content:

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.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha