You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Shawn McKinney (Jira)" <ji...@apache.org> on 2021/03/25 14:04:00 UTC
[jira] [Resolved] (FC-290) Pool connection validation switch
[ https://issues.apache.org/jira/browse/FC-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shawn McKinney resolved FC-290.
-------------------------------
Resolution: Fixed
> 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: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org