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 where is root directory of JNDI mapped 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 "where is root directory of JNDI mapped" Watch "where is root directory of JNDI mapped" New topic
Author

where is root directory of JNDI mapped

Pratibha Malhotra
Ranch Hand

Joined: Dec 21, 2003
Posts: 199
JNDI is a namespace having hierarchical structure having context as root
jdbc is one such subcontext we use.

My question is, Is JNDI's root directory ie context mapped somewhere in server. If yes where? If no, how do a server identifu the root directory representing context

lookup(jdbc/myDataSource) will search for jdbc subcontext but how would it identify the root directory(context) jdbc is present in.
[ September 21, 2005: Message edited by: Rewa Dev ]

~ Pratibha Malhotra<br /> <br />Sun Certified Java Programmer<br />SCEA 1.4 (In Progress)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />"Many of life's failures are people who did not realize how close they were to success when they gave up!!"
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

It depends on the server. The specification does not define how a JNDI namespace should be structured.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
jQuery in Action, 2nd edition
 
subject: where is root directory of JNDI mapped
 
Similar Threads
JNDI look up Advantages?
database connection from JNDI
Bean Environment
context.lookup() performance isuue
Access database from java web applications?