users@glassfish.java.net

Re: relationship between two applications

From: kedar <Kedar.Mhaswade_at_Sun.COM>
Date: Mon, 23 Apr 2007 14:48:20 -0700

glassfish_at_javadesktop.org wrote:
> Hi,
>
> I'm currently trying to deploy our application into glassfish (Sun Java System Application Server Platform Edition 9.0_01 (build b02-p01).
>
> This application is running successfully in OracleAS, JBOSS4.x and SAP Netweaver. The application consists of a core-app and several dependent application which use this core (and classes contained in this core). OracleAS has a special parent-relationship for specifying this, Netweaver has a reference option allowin the same and JBOSS seems not to have a very strict class loader.
>
> But I haven't managed so far to get one of the applications to access the core app in glassfish. Is there any way to specify this or to weaken the classloader to allow access to the core application?
>
I don't think we have a way to do this in GlassFish. And I think
it is better not to have such "facilities" because applications are
supposed to be sandboxes and they have their own class loader
hierarchy.

A hack would be to make the classes of the core application a part
of server platform by placing those classes in proper package structure
in a jar in <domain-dir>/lib/classes. But note that in that case the
classes in that core application are available to every application
deployed.

Do you have to do this, this way?

Kedar
> kind regards,
>
> Ingo
> [Message sent by forum member 'irockel' (irockel)]
>
> http://forums.java.net/jive/thread.jspa?messageID=213805
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>