I am new to EJB and trying to run some EJB (2.0) examples in Jboss 5. The execution is ok, but I found in the jboss.xml these lines:
<jboss>
<enterprise-beans>
<session>
<ejb-name>MyStatelessBean</ejb-name>
<jndi-name>JNDIName</jndi-name>
<local-jndi-name>LocalJNDIName</local-jndi-name>
</session>
</enterprise-beans>
</jboss>
I have tried to google but cannot find the explanation of the distinct between <jndi-name>
and <local-jndi-name>
, While in the code, the author only used the name defined in <jndi-name>
?