Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes hi What is Java Naming and Directory Interface? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "hi What is Java Naming and Directory Interface?" Watch "hi What is Java Naming and Directory Interface?" New topic
Author

hi What is Java Naming and Directory Interface?

suresh sai
Ranch Hand

Joined: Jul 16, 2007
Posts: 62
Hi.,Could you please tell me What is Java Naming and Directory Interface?I have a little understanding of this.It is the service used by the programmers to identify the objects and specified files in a file or directory structure (Ex NTFS or FAT in Windows XP etc.,).correct me if I am wrong.And also tell me How can this service identify the particuler object or file?
Thanks in advance
shankar reddy
Ranch Hand

Joined: Jun 04, 2007
Posts: 71
Hi , what is you are telling is correct. JNDI is used to locate any object in the directory service. By using lookup method which is availble in DataSource object.


Java Lover<br /> <br />Shankar Reddy <br />SCJP1.4 (88%)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
As its name implies, JNDI provides naming and directory services. The latter often maps to an LDAP directory, not file directories. You can find a few introductory articles linked in the J2EE FAQ.
[ October 14, 2007: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
suresh sai
Ranch Hand

Joined: Jul 16, 2007
Posts: 62
Thank you very much.And also please provide me What are those naming and directory services? What is LDAP?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
That's all explained in the articles linked in the FAQ, particularly the ones titled "Naming Services", "Directory Services", "LDAP Introduction" and "LDAP Java Tutorial Chapter".
 
GeeCON Prague 2014
 
subject: hi What is Java Naming and Directory Interface?