I have found the work around for such scenario,
In JBoss, unlike Weblogic, you cannot deploy same local ejb with same local
jndi name across multiple ears. ( However this is nowhere specified in ejb
specification ).
Work around for such scenario in JBoss is,
While deploying local ejbs in JBoss, dont specify the jndi for ejbs ( i.e.
Remove the jboss.xml file ). Server will assign a random jndi name to it.
Make use of ejb-local-ref in web.xml, just configure the ejb you want access in
web.xml
<ejb-local-ref>
<ejb-ref-name>MySession</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>mySessionlocalHOme</local-home>
mySessionLocal
<ejb-link>MySession</ejb-link> //give the same name here ( ejb name )
</ejb-local-ref>
This you have to do it in all ear files.
Regards
Anand
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254718#4254718
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254718
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user