commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Grothaus (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DBCP-263) Use a queryTimeout for the validationQuery in PoolableConnectionFactory
Date Mon, 28 Apr 2008 06:05:55 GMT

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

Christoph Grothaus updated DBCP-263:
------------------------------------

    Attachment: DBCP-263-validationQuery.patch

Here's the patch. To be applied on the "trunk" folder of DBCP. Sets the query timeout of the
validation query to a fix value of 5 seconds.

> Use a queryTimeout for the validationQuery in PoolableConnectionFactory
> -----------------------------------------------------------------------
>
>                 Key: DBCP-263
>                 URL: https://issues.apache.org/jira/browse/DBCP-263
>             Project: Commons Dbcp
>          Issue Type: Improvement
>    Affects Versions: 1.2, 1.2.1, 1.2.2
>            Reporter: Christoph Grothaus
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: DBCP-263-validationQuery.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> PoolableConnectionFactory.validateConnection(Connection conn) should use java.sql.Statement.setQueryTimeout(int)
to avoid network problems and inappropriate validation queries. The timeout should either
be a sensible default (say 5 secs) or be configurable.
> Links:
> - http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java?view=markup
> - http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html#setQueryTimeout(int)

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


Mime
View raw message