my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: where is root directory of JNDI mapped
 
Similar Threads
Access database from java web applications?
JNDI look up Advantages?
database connection from JNDI
Bean Environment
context.lookup() performance isuue