Hi,
I'm just starting with EJB, and there's one thing I don't
see very clear:
Where to use the EJB name and where to use the JNDI name.
Looks like the EJB name is used in the bean, and the JNDI name
is used in JBoss, but how about in the client ?
Moreover the "path" often varies:
sometimes the "full path" (java:comp/env/ejb/thebean) is used
sometimes ejb/thebean
sometimes thebean
Thanks for any enlightment...
Olivier
Marek Lange - 26 Jan 2005 09:35 GMT
> Where to use the EJB name and where to use the JNDI name.
> Looks like the EJB name is used in the bean, and the JNDI name
[quoted text clipped - 4 lines]
> sometimes ejb/thebean
> sometimes thebean
Look at the different JNDI namespaces. There is one per component, per
VM and a global one. java:comp/env/ejb always points to the component
namespace which is private and which is only visible to other components
if an explicit reference in your ejb-jar.xml is declared.
-marek