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 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 Soft Skills this week in the Jobs Discussion 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: 1066
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: 1066
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: 1066
Thanks Lasse
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Home Interface - JNDI name