[ 
https://issues.apache.org/jira/browse/FC-290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308700#comment-17308700
 ] 

Shawn McKinney commented on FC-290:
-----------------------------------

It has been determined that the ldap search on borrowed and idle connections is 
not necessary because bad connections will be reconnected on the borrow 
automatically.

 

Follow link for more info:

https://lists.apache.org/thread.html/r37e35466dfb859e0dd75b9cbce70b5e423ad2d7e884ff974f9710284%40%3Capi.directory.apache.org%3E

> 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
>            Priority: Major
>             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