ResourcePool pool = null;
if(Switch.getSwitch().getContainerType() == Switch.APPCLIENT_CONTAINER){
if("TRUE".equalsIgnoreCase(switchOffACCConnectionPoolingProperty))
return new UnpooledResource( poolName );
}
if ( pt == PoolType.ASSOCIATE_WITH_THREAD_POOL ) {
pool = new AssocWithThreadResourcePool( poolName );
} else {
pool = new SJSASResourcePool( poolName );
}
if( _logger.isLoggable( Level.FINE ) ) {
_logger.fine( "Using Pool " + pt);
}
return pool;