You'll have to isolate JNDI
look in server/xxx/conf/jboss-service.xml
look for NamingService
set attribute CallByValue to true.
Then you'll have to scope your WARs as defined in our main doco. I have a testcase for this in CVS so I know this works. BTW, you have to communicate through REmote interfaces if you want scoped classloading.
FYI, the testcase in cvs is:
build-test.xml creates the jars.
Thanks for the help. I'll start playing around.
Have a look at the classpath. You should avoid using the classed / jars from JBOSS_HOME/client.
Because you patched 4.0.3SP1, the client jars in the jboss-4.0.3SP1/client directory will be invalid. Build your client classpath from: