-
1. Re: Custom JNDI Binding in JBoss 6.1 or 7.1
suikast42 Jan 13, 2012 5:39 AM (in response to suikast42)Sorry for the Post abvoe. That was not the full Issue. So you can Ignore it. Try again .
Hi @ All,
I migrate an EJB 2.1 to EJB 3.1. Everything works fine but I have problems with the JNDI (ENC) binding.
I have some EJB-Jars which packaged in a EAR.
In some places in the sourcecode I must make manual lookup for EJBs. So I can do it with the Stirng java:global:/[EARName]/[EJB-JarName]/beanname!FQN IterfaceName.
But I want have my own namespace so that I want know the module name like ctx.lookup(ejb/myBean).
I Can define in jboss.xml
<session>
<ejb-name>MyEJBImpl</ejb-name>
<local-jndi-name>ejb/MyEJB</local-jndi-name>
</session>
this works fine for stateless beans but doesn't work for singleton beans. But however @LocalBinding(jndiBinding = "ejb/MyEJB") works fine.
But I want do this customation in my jboss.xml. Any idea ???
-
2. Re: Custom JNDI Binding in JBoss 6.1 or 7.1
suikast42 Jan 13, 2012 6:20 AM (in response to suikast42)Is @LocalBinding doesn't support by JBOSS 7.1 ??