Overview#Java Naming and Directory Interface (JNDI) Java API for a directory service that allows Java software clients to discover and look up data and objects via a name.
Like all Java APIs that interface with host systems, Java Naming and Directory Interface is independent of the underlying implementation.
Additionally, it specifies a Service Provider Interface (SPI) that allows directory service implementations to be plugged into the framework. It may make use of a server, a flat file, or a database; the choice is up to the vendor. Typical uses of JNDI include:
- connecting a Java application to an external directory service (such as an address database server or an LDAP server or DNS Server)
- allowing a Java Servlet to look up configuration information provided by the hosting web container