This content has been marked as final.
Show 1 reply
-
1. Re: java:comp/env/MyEjbName Vs local/MyEjbName
juha Dec 14, 2003 1:39 AM (in response to intelligentxjini)The only difference is if you ever decide to change the name of the EJB jndi binding you're looking up, or want to later lookup a proxy with different interceptor stack and make this change transparently to your code or not.
If you lookup directly from the JNDI context, a change like the above forces you to change and recompile your code. Using the bean's private ENC requires only a change of the deployment descriptor.