8.1. Java Naming and Directory Interface (JNDI)

JNDI, defined by Sun Microsystems, Inc., provides naming and directory functionality to Java programs. JNDI is an API independent of any specific directory service implementation. It enables seamless access to directory objects through multiple naming facilities.

The definition prevents, by design, the appearance of any implementation specific artifacts in the API. The unified API is designed to cover the common case. Providing this unified interface does not imply that access of unique features of a particular service, such as LDAP, is precluded, additional classes can be added to access service-unique features. JNDI can be used by a wide range of Java programs running on servers and traditional ...

Get LDAP Implementation Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.