This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Home Interface - JNDI name

 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You bind instances to a JNDI tree, not classes (interfaces are certain type of classes).
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Lasse
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic