Example #1
0
 /** 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");
   }
 }
Example #2
0
  // Para obtener una conexion.
  private Connection getConnection() {

    DBConn cnx = new DBConn();
    return cnx.getConnection();
  }