Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6799444

Backport com.sun.jndi.ldap.read.timeout support to Java 5.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 5.0
    • core-libs

      A DESCRIPTION OF THE REQUEST :
      With Java 6, the property com.sun.jndi.ldap.read.timeout can be specified in order to allow ldap operations to timeout when using the JNDI context factory com.sun.jndi.ldap.LdapCtxFactory. Providing similar support within Java 5 is desirable as an unresponsive LDAP instance can halt a varierty of application components that perform JNDI lookups.

      JUSTIFICATION :
      Allow failover to other LDAP URLS that can be specified in a PROVIDER_URL list.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      If a read timeout occurs, LdapCtxFactory operations would return a NamingException with the error message "LDAP response read timed out".
      ACTUAL -
      Use of any JNDI based LDAP operation supported by com.sun.jndi.ldap.LdapCtxFactory will never return should the LDAP instance become unresponsive.

      CUSTOMER SUBMITTED WORKAROUND :
      Restart application after editting the LDAP URL to remove any unresponsive LDAP instance.

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: