wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
 
subject: where is root directory of JNDI mapped