users@glassfish.java.net

Re: GlassFish V2.1.1 to V3 migration - JCA ClassLoader problem

From: <glassfish_at_javadesktop.org>
Date: Thu, 03 Jun 2010 09:57:12 PDT

Looking through my code I see that my web app uses my custom implementation classes of JCA interfaces such as Connection, ConnectionFactory, Interaction, InteractionSpec, etc. I could probably change the code to reference these objects using the interface type, because those interfaces should be on the classpath.

Really the only classes that my web app needs to access from inside the .RAR are classes that implement the Record interface, and any model objects that those classes use.

I'm going to try the following:

1) Move classes that implement Record into a separate .jar file that is not bundled inside the .RAR or .WAR file. I'll place this new .jar file in /domain1/lib. I'll also move model objects that the Records use into this new .jar.

2) Change my web app to use only JCA interfaces when loading a connection from JNDI, setting up an interaction and executing it.

Hopefully that works, I'll let you know.
[Message sent by forum member 'rdelaplante']

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