Java Naming and Directory InterfaceTM Configuration
This section covers information on Java Naming and Directory InterfaceTM (JNDI) systems.
JNDI System Properties
The LDAP connector supports all JNDI system properties. For more information, refer to Connection Pooling Configuration in the Oracle documentation.
The following are system properties that can be set at JVM :
com.sun.jndi.ldap.connect.pool.maxsize
com.sun.jndi.ldap.connect.pool.protocol
com.sun.jndi.ldap.connect.pool.timeout
com.sun.jndi.ldap.connect.pool.initsize
com.sun.jndi.ldap.connect.pool.authentication
com.sun.jndi.ldap.connect.pool.debug
For example:
-
Tomcat –
CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.jndi.ldap.connect.pool.timeout=3000"
-
Linux –
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.jndi.ldap.connect.pool.timeout=3000"
-
Windows –
JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.jndi.ldap.connect.pool.timeout=3000
The following are examples for environment properties that can be configured in the application XML:
<entry key="com.sun.jndi.ldap.connect.pool" value="true" />
<entry key="com.sun.jndi.ldap.read.timeout" value="120000" />