if (jdbcPassword == null) jdbcPassword = "";
try {
Class.forName(jdbcDriverName, true, Thread.currentThread().getContextClassLoader());
connection = DriverManager.getConnection(jdbcURL, jdbcUsername, jdbcPassword);
} catch (SQLException ex) {
throw new ClusterJException(
"Exception getting connection to " + jdbcURL +
"; username " + jdbcUsername, ex);
} catch (ClassNotFoundException ex) {
throw new ClusterJException(
"Exception loading JDBC driver." + jdbcDriverName, ex);
}
}
}