This content has been marked as final.
Show 4 replies
-
2. Re: How to change JNDI context name binded for EAR applicati
zman12345 Nov 19, 2009 1:42 PM (in response to zman12345)Thanks for the link jaikiran.
I still have two questions:
1) Is there way to change this without modifying the EJB source code with Annotation?
2) If I were to use the @LocalBinding annotation, is there way to let JBoss4.2 still auto naming part of the JNDI name? For example like: @LocalBinding(jndiBinding="custom/") ???
-Z -
3. Re: How to change JNDI context name binded for EAR applicati
zman12345 Nov 19, 2009 4:49 PM (in response to zman12345)I found that in a jar, we can have META-INF/jboss.xml to use local-jndi-name element to have same affect as the @LocalBinding on the bean. The question still remain is how can I can change this without touching the EJB jar file. The only way I see is to unpack the EJB jar, and add in this file. Sounds very invasive. Is there another way?
Thanks,
-Z -
4. Re: How to change JNDI context name binded for EAR applicati
jaikiran Nov 20, 2009 8:20 AM (in response to zman12345)The JNDI names are configured per bean, so there's no other way to do this.