Package anvil.database

Examples of anvil.database.ConnectionManager.acquire()


  protected PooledConnection getConnection() throws SQLException
  {
    ConnectionManager manager = _zone.getManagerFor(_poolname);
    if (manager != null) {
      return manager.acquire(_poolname);
    } else {
      throw new NoConnectionPoolException(_poolname);
    }
  }
 
View Full Code Here


    Connection conn = null;
   
    try {

      ConnectionManager manager = context.address().getZone().getManagerFor(ckey);
      connImpl = manager.acquire(ckey);
      conn = (Connection)connImpl.getConnection();
      if (catalog != null) {
        conn.setCatalog(catalog);
      }
      conn.setAutoCommit(autoCommit);
View Full Code Here

    javax.naming.Context ctx = null;

    try {

      ConnectionManager manager = context.address().getZone().getManagerFor(ckey);
      connImpl = manager.acquire(ckey);
      return connImpl;

    } catch (CannotReturnPooledConnectionException e) {
      throw context.AcquireError(e.getMessage());
     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.