commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28893] New: - PoolableConnectionFactory has incomplete javadoc on validationQuery
Date Tue, 11 May 2004 06:25:54 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28893>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28893

PoolableConnectionFactory has incomplete javadoc on validationQuery

           Summary: PoolableConnectionFactory has incomplete javadoc on
                    validationQuery
           Product: Commons
           Version: 1.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Dbcp
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: hontvari2@solware.com


The constructors in PoolableConnectionFactory have a validationQuery parameter. 
The javadoc states that its value can be null, but it doesn't define the meaning 
of null (e.g. it turns off validation / it can be null only if validation is 
turned off by other means / it uses a default validation query). After looking 
at the source the correct answer is that if null is supplied then it doesn't 
send a validation query, it only checks connection.isClosed(). (Btw. the 2.x 
mysql driver itself sent a validation query in isClosed()).

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message