File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes JNDI and local EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "JNDI and local EJB" Watch "JNDI and local EJB" New topic
Author

JNDI and local EJB

Valentin Jacquemin
Ranch Hand

Joined: Feb 15, 2006
Posts: 35
Hi all,

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....
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

Hi

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.


Regards,
Mihai


SCJP, SCJD, SCWCD, OCPJBCD
Bernhard Huber
Greenhorn

Joined: Aug 22, 2009
Posts: 2
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

regards bernhard
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI and local EJB