Package anvil.database

Examples of anvil.database.ConnectionManager


    _cache = new Hashlist();
  }

  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


    PooledConnection connImpl = null;
    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

    }

   
    n = _pools.size();
    if (n>0) {
      _manager = new ConnectionManager();
      for(int i=0; i<n; i++) {
        PoolPreferences prefs = (PoolPreferences)_pools.get(i);
        if (prefs.isEnabled()) {
          _manager.addPool(new ConnectionPool(this, prefs));
        }
View Full Code Here

    PooledConnection connImpl = null;
    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

Related Classes of anvil.database.ConnectionManager

Copyright © 2018 www.massapicom. 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.