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);
}
No comments:
Post a Comment