public static ResourcePool newInstance(PoolInfo poolInfo, PoolType pt, Hashtable env) throws PoolingException { if(ConnectorRuntime.getRuntime().isACCRuntime()){ if("TRUE".equalsIgnoreCase(switchOffACCConnectionPoolingProperty)) return new UnpooledResource( poolInfo, env ); } ResourcePool pool = null; if( pt == PoolType.POOLING_DISABLED ) { return new UnpooledResource( poolInfo, env ); } if ( pt == PoolType.ASSOCIATE_WITH_THREAD_POOL ) { pool = new AssocWithThreadResourcePool( poolInfo, env ); } else { pool = new ConnectionPool( poolInfo, env ); } if (_logger.isLoggable(Level.FINE)) { _logger.fine("Created a pool of type : " + pt); } return pool; } }
if (runtime.isACCRuntime() || runtime.isNonACCRuntime()) { ConnectorDescriptor connectorDescriptor = null; try {
if (getRuntime().isACCRuntime() || getRuntime().isNonACCRuntime()) { ConnectorDescriptor connectorDescriptor = null;