Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1352

Increase the robustness of org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0-beta3
    • Fix Version/s: Trunk
    • Labels:
      None

      Description

      org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository obtains its connection to the LDAP repository during init() processing and thereafter assumes it to be valid. When, as may sometimes temporarily or permanently occur, the connection becomes invalid the resulting javax.naming.CommunicationException is propogated to the caller and no attempt is made to reestablish the connection. James must be restarted to reestablish the connection, which is likely to be unacceptable in a production environment.

      To correct this, org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository needs to be modified in the following ways:

      1) Make the connection timeout period configurable
      2) Introduce the ability to attempt to reinstate and retry connections a configurable number of times with a configurable delay between retries when a recoverable exception is thrown

        Attachments

          Activity

            People

            • Assignee:
              sbrewin@apache.org Steve Brewin
              Reporter:
              sbrewin@apache.org Steve Brewin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: