Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How JNDI name locate the objects

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How JNDI name locate the objects registered with it.
Do it contains the information of its objects,no matter anywhere in the universe they are then placed.
I am not clear about this
Please tell me.
 
shiv kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your webpage(jsp/ whatever) makes request to server for remote resources e.g. Session EJB with some kind of ejb-reference-name. When server got this request (anywhere in world/network does not matter, since browser requests to perticular server anywhere), server looks for that resource's JNDI registry in this case web.xml file. In this DD he will find ejb-ref & all related entries to exactly find where the resource resides exactly on server(on other server servers in case of web services, but its with universal registry service called UDDI). Thats it, server pass on the request that resources. Now it's upto that resources to process request and send responce back through server.

Revert back, if not clear.
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JNDI overview
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!