[
https://issues.apache.org/jira/browse/FC-290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308701#comment-17308701
]
Shawn McKinney edited comment on FC-290 at 3/25/21, 2:03 PM:
-------------------------------------------------------------
Added properties to control this behavior:
```
#Applies to all pools, connection validated on retrieval with dummy ldapsearch.
(default is false)
all.validate.conn.borrow=false
#Applies to all pools, connection validated when idle with dummy ldapsearch.
(default is false)
all.validate.conn.idle=false
```
was (Author: smckinney):
Added properties to control this behavior:
```
# Applies to all pools, connection validated on retrieval with dummy
ldapsearch. (default is false)
all.validate.conn.borrow=false
# Applies to all pools, connection validated when idle with dummy ldapsearch.
(default is false)
all.validate.conn.idle=false
```
> 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]