I am new to
EJB and is confused with where JNDI names are stored.
With the following Xdoclet tags
* @ejb:bean
* name="MyBean"
* jndi-name="ejb/MyBean"
* local-jndi-name="ejb/MyBeanLocal"
* cmp-version="2.x"
* schema="mybean"
* view="both"
When I do a context.lookup("java:comp/env/ejb/MyBeanLocal")
it can find the Ejb Bean. However, if I do
context.lookup("ejb/MyBeanLocal") instead, it would find the object.
I am going thru Enterprise Javabeans 4th Ed and it seems to
suggest that it will work.
Can someone clarify this? I am using
Jboss.
I realize that may be related to JNDI_NAME vs COMP_NAME
and I can not find a very detail description of them.
Please help