List of usage examples for org.apache.commons.dbcp2.managed BasicManagedDataSource setValidationQuery
public void setValidationQuery(String validationQuery)
Sets the #validationQuery .
Note: this method currently has no effect once the pool has been initialized.
From source file:org.everit.blobstore.jdbc.test.JtdsJdbcBlobstoreTest.java
@Override protected BasicManagedDataSource createManagedDataSource(final GeronimoTransactionManager transactionManager, final XADataSource xaDataSource) { BasicManagedDataSource lManagedDataSource = super.createManagedDataSource(transactionManager, xaDataSource); lManagedDataSource.setValidationQuery("select 1"); return lManagedDataSource; }