JNDI Overview

Naming and directory services play a vital role in intranets and the Internet by providing network-wide sharing of a variety of information about users, machines, networks, services, and applications.

JNDI is an API specified in Java technology that provides naming and directory functionality to applications written in the Java programming language. It is designed especially for the Java platform using Java's object model. Using JNDI, applications based on Java technology can store and retrieve named Java objects of any type. In addition, JNDI provides methods for performing standard directory operations, such as associating attributes with objects and searching for objects using their attributes.

JNDI is also defined independent of any specific naming or directory service implementation. It enables applications to access different, possibly multiple, naming and directory services using a common API. Different naming and directory service providers can be plugged in seamlessly behind this common API. This enables Java technology-based applications to take advantage of information in a variety of existing naming and directory services, such as LDAP, NDS, DNS, and NIS(YP), as well as enabling the applications to coexist with legacy software and systems.

Using JNDI as a tool, you can build new powerful and portable applications that not only take advantage of Java's object model but are also well-integrated with the environment in which they are deployed.

If you have comments, questions, or feedback on JNDI, write to us at jndi@java.sun.com.

We also maintain a "jndi-interest" mailing list open to any discussion about JNDI. To subscribe, send an email message with exactly the following syntax in the message body to listserv@java.sun.com:

subscribe jndi-interest your real name

To remove yourself from the list, use signoff instead of subscribe.

Your questions may have already been answered. You can browse an archive of messages previously sent to the "jndi-interest" list.

Left Curve
Java SDKs and Tools
Right Curve
Left Curve
Java Resources
Right Curve