You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/01/31 10:18:48 UTC
DO NOT REPLY [Bug 16629] New: -
org.apache.commons.dbcp.jdbc2pool.Jdbc2PoolDataSource: setting testWhileIdle from server.xml does not work.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16629>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16629
org.apache.commons.dbcp.jdbc2pool.Jdbc2PoolDataSource: setting testWhileIdle from server.xml does not work.
Summary: org.apache.commons.dbcp.jdbc2pool.Jdbc2PoolDataSource:
setting testWhileIdle from server.xml does not work.
Product: Commons
Version: Nightly Builds
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Dbcp
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: remke.rutgers@brightalley.nl
On setting testWhile from server.xml:
lines 1689-1694 in org.apache.commons.dbcp.jdbc2pool.Jdbc2PoolDataSource.java
now read:
ra = ref.get("testWhileIdle");
if (ra != null && ra.getContent() != null)
{
setTestWhileIdle
(Boolean.getBoolean(ra.getContent().toString()));
}
However, including:
<parameter>
<name>testWhileIdle</name>
<value>true</value>
</parameter>
In server.xml still sets testWhileIdle to false.
I think the lines above should read:
ra = ref.get("testWhileIdle");
if (ra != null && ra.getContent() != null)
{
setTestWhileIdle
(Boolean.valueOf(ra.getContent().toString()));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org