users@glassfish.java.net

Glassfish, OSGi and Eclipse

From: <glassfish_at_javadesktop.org>
Date: Sat, 11 Sep 2010 02:36:09 PDT

Can anyone recommend a setup for developing OSGi bundles for Glassfish in Eclipse?

AFAIK, the Glassfish Eclipse plugin can only deploy traditional WARs or EARs, but no OSGi bundles or WABs.

Another approach that might work is using just Eclipse PDE and none of the WTP and Glassfish plugins by treating Glassfish like any other OSGi application, putting it into your target platform, developing your own bundles as plugin projects and using an ordinary OSGi launch configuration to launch Glassfish and your own bundles. The difficult part with that approach would be the system properties and configuration files like domain.xml.

There should be an easy way, but I'm really not sure how to get started...

Best regards,
Harald
[Message sent by forum member 'hwellmann']

http://forums.java.net/jive/thread.jspa?messageID=482401