Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI Api  RSS feed

 
Udayan Naik
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to connect to on LDAP server using Java.I know that i have to use the JNDI api for this pusrpose.Can i use JNDI to connect to any other directory service other than an LDAP enabled one?
 
Art Metzer
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Udayan.
Yes, other directory services, such as COS Naming or a machine's file system, are available.
For a great discussion on JNDI, I would recommend downloading Ed Roman's book, Mastering Enterprise JavaBeans at the serverside.com. (In order to download the book, you will be required to register, but registering is free. Furthermore, you'll need Adobe Acrobat Reader to read the book.) Mr. Roman's wonderful discussion of JNDI, naming services and directory services can be found in Appendix B, "Understanding the Java Naming and Directory Interface". This chapter should answer your question nicely.
To buy a copy of the book or view its errata, click here.
Good luck, Udayan!
Art
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!