Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun ONE Directory Server Resource Kit 5.2 Tools Reference 

Chapter 35
Java Naming and Directory Interface

Java™ Naming and Directory Interface is an API used to provide naming and directory functionality to applications written in the Java programming language. This chapter provides information on how to the tool. It contains the following sections:


Java Naming and Directory Interface (JNDI) is designed specifically for the Java platform using Java’s object model. Using JNDI, Java applications can store and retrieve 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 defined independent of any specific naming or directory service implementation, enabling applications to access different (or possibly multiple) naming and directory services with one API. Assorted naming and directory service providers can be plugged in behind this common API to access information from a variety of existing naming and directory services, including Lightweight Directory Access Protocol (LDAP), Novell Directory Service (NDS), Domain Name System (DNS), and Network Information System/Yellow Pages (NIS/YP). In addition, JNDI enables the applications to coexist with legacy software and systems.


A service provider is basically a set of classes that implement various JNDI interfaces for a specific naming and directory service - much like a JDBC driver implements various JDBC interfaces for a particular database system.

JNDI Service Provider for DSML

The DSRK includes the Early Access 1 release of the JNDI DSML v2 Service Providers.


Directory Services Markup Language (DSML) is a markup language that enables you to represent directory entries and commands in XML.

The following components (and additional information including READMEs) can be found in DSRK_base/jndi-dsml.

JNDI Booster Pack for LDAP Service Provider

The DSRK includes the 1.0 release of the JNDI LDAP Booster Pack. This software is NOT an LDAP service provider; it works in conjunction with an LDAP service provider. It must be installed into a Java 2 Standard Edition (J2SE) SDK or Runtime Environment (JRE) that already has a JNDI/LDAP service provider.


The recommended version of the J2SE platform to use with this release is 1.4.x.

The following components (and additional information including READMEs) can be found in DSRK_base/jndi-ldap.

Additional Information

The following locations contain more information on JNDI.

The JNDI Tutorial

JNDI page for Java Developers

XML page for Java Developers

Javadocs for JNDI 1.2.1

Previous      Contents      Index      Next     

Copyright 2004 Sun Microsystems, Inc. All rights reserved.