I recommend you develop the WAB or OSGi bundles using Eclipse and the
plugins you are already used to. When it comes to deployment, just copy
the bundle to glassfish/domains/domain1/autodeploy/bundles/. That
directory is watched for addition/deletion/modification of bundles and
appropriate actions like deployment/undeployment/updatation
automatically take place. This capability is extensible, so you can even
set up your own directory if you want to avoid copying. You can set up
the directory where your build script creates the bundle for example
(something like target/ dir in case of maven). I will let the
developers of glassfish plugin for eclipse to correct me if there is a
better way to achieve this.
Thanks,
Sahoo
On Saturday 11 September 2010 03:06 PM, glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>