Examples of AbandonedObjectPool


Examples of org.apache.commons.dbcp.AbandonedObjectPool

    {
        final GenericObjectPool connectionPool;
        final boolean doRemoveAbandoned = ac != null && ac.getRemoveAbandoned();

        if (doRemoveAbandoned) {
            connectionPool = new AbandonedObjectPool(null, ac);
        } else {
            connectionPool = new GenericObjectPool();
        }
        connectionPool.setMaxActive(config.maxActive);
        connectionPool.setMaxIdle(config.maxIdle);
View Full Code Here

Examples of org.apache.commons.dbcp.AbandonedObjectPool

            && NumberUtils.isNumber( attributes.get( IDBDatasourceService.REMOVE_ABANDONED_TIMEOUT ) ) ) {
          config.setRemoveAbandonedTimeout( Integer.parseInt( attributes
              .get( IDBDatasourceService.REMOVE_ABANDONED_TIMEOUT ) ) );
        }

        pool = new AbandonedObjectPool( null, config );
      }

      pool.setWhenExhaustedAction( whenExhaustedActionType );

      // Tuning the connection pool
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.