[jboss-user] [EJB 3.0] - Re: Binding the same session bean to JNDI more than once
jaikiran
do-not-reply at jboss.com
Thu Apr 24 07:38:31 EDT 2008
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>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146474#4146474
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146474
More information about the jboss-user
mailing list