This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JNDI bind()? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "JNDI bind()?" Watch "JNDI bind()?" New topic
Author

JNDI bind()?

vikasids sharma
Ranch Hand

Joined: Aug 01, 2003
Posts: 157
well sorry for asking foolish Question.but this is something i hav not been able to understand...
While registering our home object to some directory service using proprietry vendor specific file for a specific bean , we mention a key value pair(Myhome, "home").Here home is nick name for home object that we use while looking up for registered specific bean through JNDI.
My question is
1. what if i give similar nickname to another home object corresponds to another bean?
2. If it gives a error, how should i confirm that mentioned name will not be existing already(take a case of hundreds of bean playing in single application server)
Thanks
Vikas


Thanks
Vikas Sharma
SCJP(1.4)
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
The bind() method will throw a NameAlreadyBoundException (or something similar) if the JNDI tree already has an object bound to the name you provided.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JNDI bind()?
 
Similar Threads
regargding JNDI name binding
EJB loookup
jndi lookup
jndi context
regarding JNDI name binding