[dbcp] setting properties

2015-10-08 Thread Pruitt, Byron S
The BasicDataSource class has methods for setting some validation policies

getTestOnBorrow())
getTestOnCreate())
getTestOnReturn())
getTestWhileIdle())

How are these invoked programmatically?  I started with the 
PoolingDataSourceExample code and nothing created can set those.

Thanks.

-SP



-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [dbcp] setting properties

2015-10-08 Thread Phil Steitz
On 10/8/15 12:00 PM, Pruitt, Byron S wrote:
> The BasicDataSource class has methods for setting some validation policies
>
> getTestOnBorrow())
> getTestOnCreate())
> getTestOnReturn())
> getTestWhileIdle())
>
> How are these invoked programmatically?  I started with the 
> PoolingDataSourceExample code and nothing created can set those.

To use those properties, you need to instantiate a BasicDataSource,
which wraps a PoolingDataSource.

Phil
>
> Thanks.
>
> -SP
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org