users@glassfish.java.net

Re: Help: Two deployed wars use different version of a .jar

From: <glassfish_at_javadesktop.org>
Date: Tue, 26 May 2009 05:02:35 PDT

Thanks Sahoo, I have closed the ticket as INVALID.

Now that I know this is by design, I can see how it would be useful. For example, apps that use the JCA connector can compile against it to use its objects but do not need to bundle any part of it inside of themselves because all of its classes are available on the ClassPath.


Thanks,
Ryan

> Yes, this is by design and spec compliant. Resource
> Adapters are
> considered like system libraries and hence they are
> shared by all other
> applications. Section EE.8.4 of Java EE 5 spec says
> the following:
>
> /"Standalone resource adapters delivered in .rar
> files and standalone
> class libraries delivered in .jar files that become
> installed libraries
> will of necessity appear in the class namespaces of
> applications that
> use them, and may appear in the class namespace of
> any application
> depending on the level of isolation supported by the
> Java EE product."/
>
> Thanks,
> Sahoo
[Message sent by forum member 'rdelaplante' (rdelaplante)]

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