[ 
https://issues.apache.org/jira/browse/DBCP-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roshan Gunasekara updated DBCP-226:
-----------------------------------

    Attachment: Set_Timeout_from_Tomcat.patch

When I tested this I found out that when using BasicDataSourceFactory  in 
Tomcat setting a new property "validationQueryTimeout" doesn't get propagated 
to BasicDataSource. 

I think you need to add a few lines to BasicDataSourceFactory  so you can set 
this property from Tomcat. 

Patch attached for your consideration. 

> DBCP should support configuration of queryTimeout for validation queries
> ------------------------------------------------------------------------
>
>                 Key: DBCP-226
>                 URL: https://issues.apache.org/jira/browse/DBCP-226
>             Project: Commons Dbcp
>          Issue Type: Improvement
>    Affects Versions: 1.2.2
>            Reporter: Phil Steitz
>            Assignee: Phil Steitz
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: Set_Timeout_from_Tomcat.patch
>
>
> Validation queries used when testOnBorrow and/or testOnReturn do not 
> currently support queryTimeouts.  This should be configurable.
> See http://www.mail-archive.com/[email protected]/msg92457.html 
> for background on this request made on the commons-dev mailing list.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to