Shawn McKinney created FC-290:
---------------------------------

             Summary: Pool connection validation switch
                 Key: FC-290
                 URL: https://issues.apache.org/jira/browse/FC-290
             Project: FORTRESS
          Issue Type: Improvement
    Affects Versions: 2.0.5
            Reporter: Shawn McKinney
            Assignee: Shawn McKinney
             Fix For: 2.0.6


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:

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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to