import java.sql.*;
public class opendb
{
private static opendb db;
private Connection conn;

public static opendb getInstance() throws Exception{
if(db==null){
db = new opendb();
}
return db;
} private opendb() throws Exception{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
this.conn= DriverManager.getConnection("jdbc:odbc:test");
} public Connection getConnection(){
return this.conn;
}
}