Meaningless Drivel is fun!
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 Java Interview Guide this week in the Jobs Discussion 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

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.

Pankaj Lochna Patro

Thanks & Regards,
Pankaj Patro
Paul Sturrock

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
I agree. Here's the link:
subject: Why do we need JNDI
It's not a secret anymore!