Uploaded image for project: 'FORTRESS'
  1. FORTRESS
  2. FC-290

Pool connection validation switch

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.5
    • 2.0.6
    • None

    Description

      Currently a dummy search is made to server every time a connection is retrieved from the pool. 

       

      This behavior needs to be made configurable via adding a switch to the connection pool creation, in LdapConnectionProvider class via the setTestOnBorrow method:

      ```
      // Create the Admin pool
      adminPool = new LdapConnectionPool( poolFactory );
      adminPool.setTestOnBorrow( true );
      adminPool.setWhenExhaustedAction( GenericObjectPool.WHEN_EXHAUSTED_GROW );
      adminPool.setMaxActive( max );
      adminPool.setMinIdle( min );
      adminPool.setMaxIdle( -1 );
      adminPool.setTestWhileIdle( testWhileIdle );
      adminPool.setTimeBetweenEvictionRunsMillis( timeBetweenEvictionRunMillis );
      ```

      Attachments

        Activity

          People

            smckinney Shawn McKinney
            smckinney Shawn McKinney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: