JNDI Basics

JNDI technology allows Java programs to access a wide variety of naming and directory services in a consistent, Java-centric way. The following picture shows a Java application using JNDI to access a directory service.

The role that each part plays in an RMI program is summarized below:

  1. Application class -- Calls the methods of a JNDI service provider to connect to naming and directory services and perform operations such as querying the service or binding new entries.
  2. JNDI Service Provider -- A Java class that can communicate with a naming or directory service. JDK 1.3 includes service providers for
  3. Naming and Directory Service -- Software that manages name to object bindings.
Note: A comprehensive account of JNDI is outside the scope of this document. If you are developing programs that use JNDI and you are not familiar with the technology, you will do well to look at any of the books that have been written on JNDI.

Legal Notices