This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

JNDI Api  RSS feed

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?
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 (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!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!