# Module java.naming

Defines the Java Naming and Directory Interface (JNDI) API.

Common standard JNDI environment properties that may be supported by JNDI providers are defined and documented in `Context`. Specific JNDI provider implementations may also support other environment properties, which are specific to their implementation.

Implementation Note:
  The following implementation specific properties are supported by the default LDAP Naming Service Provider implementation in the JDK:
  - `com.sun.jndi.ldap.connect.timeout`:
    The value of this property is the string representation of an integer representing the connection timeout in milliseconds. If the LDAP provider cannot establish a connection within that period, it aborts the connection attempt. The integer should be greater than zero. An integer less than or equal to zero means to use the network protocol's (i.e., TCP's) timeout value.
    If this property is not specified, the default is to wait for the connection to be established or until the underlying network times out.
  - `com.sun.jndi.ldap.read.timeout`:
    The value of this property is the string representation of an integer representing the read timeout in milliseconds for LDAP operations. If the LDAP provider cannot get a LDAP response within that period, it aborts the read attempt. The integer should be greater than zero. An integer less than or equal to zero means no read timeout is specified which is equivalent to waiting for the response infinitely until it is received.
    If this property is not specified, the default is to wait for the response until it is received.
Module Graph:
Since:
  9

- ## Packages

  Exports
  Package | Description
  --- | ---
  javax.naming | Provides the classes and interfaces for accessing naming services.
  javax.naming.directory | Extends the `javax.naming` package to provide functionality for accessing directory services.
  javax.naming.event | Provides support for event notification when accessing naming and directory services.
  javax.naming.ldap | Provides support for LDAPv3 extended operations and controls.
  javax.naming.ldap.spi |
  javax.naming.spi | Provides the means for dynamically plugging in support for accessing naming and directory services through the `javax.naming` and related packages.

- ## Services

  Uses
  Type | Description
  --- | ---
  LdapDnsProvider | Service-provider class for DNS lookups when performing LDAP operations.