super.init(config);
try {
// Load (and therefore register) the Sybase driver
Class.forName("com.sybase.jdbc.SybDriver");
con = DriverManager.getConnection(
"jdbc:sybase:Tds:dbhost:7678", "user", "passwd");
}
catch (ClassNotFoundException e) {
throw new UnavailableException(this, "Couldn't load database driver");
}
catch (SQLException e) {
throw new UnavailableException(this, "Couldn't get db connection");
}