#484 - JDBC4+ drivers do not need Class.forName() registration - removing that call

This commit is contained in:
Robin Bygrave
2015-12-07 21:02:00 +13:00
parent 664b1cbd75
commit 2859ea657e
@@ -254,14 +254,6 @@ public class DataSourcePool implements DataSource {
private void initialise() throws SQLException {
// Ensure database driver is loaded
try {
ClassUtil.forName(this.databaseDriver, this.getClass());
} catch (Throwable e) {
throw new PersistenceException("Problem loading Database Driver [" + this.databaseDriver + "]: "
+ e.getMessage(), e);
}
String transIsolation = TransactionIsolation.getLevelDescription(transactionIsolation);
//noinspection StringBufferReplaceableByString
StringBuilder sb = new StringBuilder(70);