Trail: Java Naming and Directory Interface(TM).
This trail describes JNDITM (Java Naming and Directory Interface) an API to access the directory and naming services. Here you learn about the basic naming and directory services and how to use JNDI to write simple applications to use these services. The most popular directory service LDAP is used to demostrate the use of JNDI to access the directory services.

Naming and Directory Concepts Start here to get an overview of naming and directory concepts.

JNDI Overview Gives you an overview of JNDI, its architecture and packaging.

Software Setup Describes instructions and steps involved in setting an environment that is required to run the examples described in this trail as well as any other JNDI application.

Naming and Directory Operations Describes various naming and directory operations and demonstrates them through plenty of examples that access naming/directory services using JNDI.

Advanced Topics for LDAP users A specialized lesson for the LDAP users. It talks about modeling JNDI as an LDAP API, how to perform LDAP authentication, SSL and managing connections in production environments.

Accessing Objects in the Directory Shows you how to integrate your application with the directory, so that you can store and retrieve Java objects to and from the directory.

New features in JDK 5.0 and JDK 6 Introduces to the new features in the JNDI and the LDAP Service Provider that are available in JDK 5.0 and JDK 6.


Note: This tutorial trail is based on the JNDI tutorial at http://java.sun.com/jndi/tutorial/

Why there are two tutorials on JNDI?- I am confused about which one to use?

This tutorial trail is a shorter version of the longer JNDI tutorial and it's been recently updated to include JDK 5.0 and JDK 6 features. The following topics are not covered in this trail, They are covered only in the JNDI Tutorial.

In future, we have plans to merge both tutorial pointers and provide a single source of updated information for our developers.

Previous page: Beginning of Tutorial
Next page: Naming and Directory Concepts