/** This method used to connect to the Conection pool */ public void connect() throws ConnectException, RemoteException { try { conn = null; conn = dbconn.open(); USFEnv.getLog().writeDebug("created db connection(), ref: " + conn.toString(), this, null); } catch (Exception e) { throw new ConnectException("Database connection failure"); } }
// Para obtener una conexion. private Connection getConnection() { DBConn cnx = new DBConn(); return cnx.getConnection(); }