I am deploying a Java EE application on JBoss 7.1.1, and when my beans session is deployed, JBoss displays a message stating that it has created several JNDI bindings. Something like that:
java:global/ear-name/jar-name/MyClassImpl!fully.qualified.path.to.Interface java:app/jar-name/MyClassImpl!fully.qualified.path.to.Interface java:module/MyClassImpl!fully.qualified.path.to.Interface java:jboss/exported/ear-name/jar-name/MyClassImpl!fully.qualified.path.to.Interface java:global/ear-name/jar-name/MyClassImpl java:app/jar-name/MyClassImpl java:module/MyClassImpl
It is slightly different from EJB to EJB, but that is a general idea.
I am confused by what is happening here. Why are there so many of them? Is there any difference between these JNDI bindings? If so, when should each be used?
source share