This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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!