9.1. What is JNDI?

JNDI, as defined by Sun Microsystems, provides naming and directory functions to Java programs. JNDI is an API independent of any specific directory service implementation.

The definition prevents, by design, the appearance of any implementation-specific artifacts in the API. The API is designed to cover the common case. JNDI was developed as part of the Java Enterprise API set that also includes Enterprise JavaBeans (EJB) and JDBC. The EJB specification has a special relationship with JNDI, because EJB clients use this mechanism to find entity beans or Session beans.

JNDI provides a generalized naming and directory service interface. For example, JNDI could be used to retrieve files from a file system. The file system acts ...

Get WebSphere V3.5 Handbook 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.