Unable to configure JNDI Read & Connect Timeout properties through Java VM options
问题 I have configured JNDI read & connect timeout properties through VM options as shown below: -Dcom.sun.jndi.ldap.connect.timeout=5000 -Dcom.sun.jndi.ldap.read.timeout=5000 But it is not working. JNDI read time out fails with below exception: javax.naming.NamingException: LDAP response read timed out, timeout used:-1ms. But if I configured these properties in JNDI environment properties as shown below: env.put("com.sun.jndi.ldap.read.timeout", "5000"); env.put("com.sun.jndi.ldap.connect.timeout