• Post Reply Bookmark Topic Watch Topic
  • New Topic

why do we need JNDI

 
rajareddy annavaarm
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what do we need JNDI?why cant we directly use Home objects of EJB.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The purpose of JNDI in EJB is for binding the home object's stub.If you go deep then you will find that that is how EJB achieves locational independence.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JNDI is also used to lookup resources like a database or a message queue. With JNDI you get a uniform way to access directory services.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!