String db_url = p.getProperty(configName + "." + "DBURL");
String db_driver = p.getProperty(configName + "." + "DBDriver");
String db_user = p.getProperty(configName + "." + "DBUser");
String db_password = p.getProperty(configName + "." + "DBPassword");
if (db_driver == null || db_url == null) {
throw new DataBaseException("Driver or URL null: " + configName);
}
return getConnection(db_url, db_driver, db_user, db_password);
} catch (ClassNotFoundException ex) {
throw new DataBaseException(ex.toString());
} catch (SQLException ex) {
throw new DataBaseException(ex.toString());
}
}