This content has been marked as final.
Show 1 reply
-
1. Re: Binding the same session bean to JNDI more than once
jaikiran Apr 24, 2008 7:38 AM (in response to colineberhardt)You probably have not configured classloader isolation for those 2 EARs. Create a jboss-app.xml (if you don't have one, already) for both these EARs. The jboss-app.xml needs to be placed in the META-INF folder of the EARs. The contents of that file should be something like this:
EAR1:<jboss-app> <loader-repository> org.myapp:loader=myEAR <loader-repository-config> java2ParentDelegation=false </loader-repository-config> </loader-repository> </jboss-app>
For the other EAR, the jboss-app.xml contents will be similar except a unique name for the classloader
EAR2:<jboss-app> <loader-repository> org.myapp:loader=myOtherEAR <loader-repository-config> java2ParentDelegation=false </loader-repository-config> </loader-repository> </jboss-app>