I am wondering whether when developing a Local EJB the container will register the bean in JNDI also or not?
Actually I deployed a simple bean in Glassfish and then browsing JNDI I couldn't find the bean, any idea why? When deploying it as a Remote bean, I can see it in the JNDI browser of Glassfish admin console....
All the beans can be located with JNDI, I also think that every time when you inject a resource(with an annotation) the container does a jndi look up.
SCJP, SCJD, SCWCD, OCPJBCD
posted 7 years ago
In my opinion all ejbs are available via JNDI, the local and the remote available ejbs.
In the jndi browser of glassfish v2 you see only the remotly available ejbs.
If you switch to JBoss and browse JNDI tree there you will notice jndi entries having:
* having no prefix - these are remotly available
* having prefix java: - these are only locally available
* having prefix java:comp/env pre ejb - these are the ejb locally available entiries like env-entry, etc
that's what I experienced so far
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads