because dbcp code check the validationQuery.
Unconditionally TestOnBorrow, TestOnReturn in given properties also false.
package org.apache.commons.dbcp;
public class BasicDataSource implements DataSource {
// Can't test without a validationQuery
if (validationQuery == null) {
setTestOnBorrow(false);
setTestOnReturn(false);
setTestWhileIdle(false);
}
'general java' 카테고리의 다른 글
A file uploading encoder/decoder example by using apache mina 2.0 (0) | 2009.11.13 |
---|---|
Spring에서 namespace를 주기 (0) | 2009.07.22 |
using merge statement in ibatis. (to 2.3.4) (0) | 2009.04.25 |
Deadlock using commons-pool 1.4 and commons-dbcp 1.2.2 (0) | 2009.04.24 |
No SqlHandler log4j:ERROR problem (0) | 2009.04.21 |