This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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: 35439
    
    9
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 ]

Android appsImageJ pluginsJava web charts
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: 35439
    
    9
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".
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: hi What is Java Naming and Directory Interface?
 
Similar Threads
InitialContext information for lookup
When to use jndi ?
What exactly is a 'context' regarding JNDI?
JNDI server persistance
Applying JNDI and its concepts