• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why do we need JNDI

 
Pankaj Patro
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic