wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Why do we need JNDI 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 "Why do we need JNDI" Watch "Why do we need JNDI" New topic
Author

Why do we need JNDI

Pankaj Patro
Ranch Hand

Joined: Apr 20, 2005
Posts: 35
Generally JNDI does binding a object with name, and we looks for that object through a particular name.


But why we cant go directly to that object andassociate where it is required, insteded of making a JNDI look up.


Thnaks,
Pankaj Lochna Patro


Thanks & Regards,
Pankaj Patro
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Because it might not exist in the JVM you attempt to access it from. JEE applications can be distributed, resources bound in JNDI are available to everything that has access to the namespace.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Why do we need JNDI
 
Similar Threads
regarding JNDI
JNDI Beginner
Singleton in a cluster
PoratableRemoteObject
can we give any name to jndi name?