super.init(config);
try {
// load the driver
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
}
catch (ClassNotFoundException e) {
throw new UnavailableException(
"DedicatedConnection.init() ClassNotFoundException: " +
e.getMessage());
}
catch (IllegalAccessException e) {
throw new UnavailableException(
"DedicatedConnection.init() IllegalAccessException: " +
e.getMessage());
}
catch (InstantiationException e) {
throw new UnavailableException(
"DedicatedConnection.init() InstantiationException: " +
e.getMessage());
}
try {
// establish a connection
connection = DriverManager.getConnection(
"jdbc:oracle:thin:@dssw2k01:1521:orcl", "scott", "tiger");
connected = System.currentTimeMillis();
}
catch (SQLException e) {
throw new UnavailableException(
"DedicatedConnection.init() SQLException: " +
e.getMessage());
}