Java 教程是为 JDK 8 编写的。本页中描述的示例和实践未利用在后续版本中引入的改进。
This trail describes JNDI™ (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.
命名和目录概念Start here to get an overview of naming and directory concepts.
JNDI OverviewGives you an overview of JNDI, its architecture and packaging.
软件设置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.
命名和目录操作Describes various naming and directory operations and demonstrates them through plenty of examples that access naming/directory services using JNDI.
Advanced Topics for LDAP usersA 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 DirectoryShows you how to integrate your application with the directory, so that you can store and retrieve Java objects to and from the directory.
Features in JDK 5.0 and JDK 6Introduces to the features in the JNDI and the LDAP Service Provider that are available in JDK 5.0 and JDK 6.
注意:This tutorial trail is based on the standalone JNDI tutorial located at https://docs.oracle.com/javase/jndi/tutorial/. The standalone JNDI tutorial, last updated under Java 2 SDK, Standard Edition, v 1.4.2, provides comprehensive coverage on JNDI, but is no longer supported. This tutorial excerpts the basics from the standlone tutorial and includes features added to JNDI in the Java Platform Standard Edition 5.0 and 6 releases.
The older JNDI tutorial is preserved as an archive on docs.oracle.com.