This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Home Interface - JNDI name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Home Interface - JNDI name" Watch "Home Interface - JNDI name" New topic
Author

Home Interface - JNDI name

Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
Can somebody tell me, if the JNDI association is between
1. the home interface and simply "a name" or
2. an object implementing the home interface and a "name"
on the server side.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
You bind instances to a JNDI tree, not classes (interfaces are certain type of classes).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
thanks Lasse,
So I understand that these home Objects implementing the home interfaces are created at the time of deployment and bound to their JNDI names.
Any idea, how many home Objects are created for each JNDI name and is that specific to each Container?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I'm not too knowledgeable about the JNDI specification, but I believe it states that only one object can be bound to a JNDI name. Of course, that single object can be a "load balancer" and proxy incoming method calls to a number of objects behind the scenes.
[ December 11, 2003: Message edited by: Lasse Koskela ]
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
Thanks Lasse
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Home Interface - JNDI name
 
Similar Threads
How to deploy EJBs in JBOSS?
jndi lookup
unable to lookup remote EJB
How can I solve NameNotFoundException?
How to set EJB Jndi Name in Websphere 5.0