users@glassfish.java.net

Re: How to run a GlassFish client as a Eclipse RCP application

From: <glassfish_at_javadesktop.org>
Date: Fri, 09 Jul 2010 10:59:28 PDT

@Maxim: What exactly do you mean by "runtime classpath" of Eclipse RCP?

Eclipse RCP is an OSGi application, and one of the main purposes of OSGi is to supersede the big fat classpath by a modular structure of bundles with detailed imports and exports.

Since Glassfish v3 is also OSGi based, you should - in theory - be able to just pick the required set of Glassfish modules and copy them to the plugins/ folder of your RCP application.

However, this will not work for the libs listed by cf126330. All the modules in .../glassfish/modules are OSGi bundles, but these libs are not, they are just plain old JARs with a Class-Path manifest header referencing a list of Glassfish OSGi modules.

I wonder why this is so... On the one hand, OSGi is one of the major structural innovations in Glassfish v3, on the other hand, there is surprisingly little documentation about it, making it rather hard for end users to start using the new OSGi features.

Regards,
Harald
[Message sent by forum member 'hwellmann']

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