Source:
public void initialize(ManagedConnectionFactory mcf, ConnectionListenerFactory clf, Subject subject, ConnectionRequestInfo cri, PoolConfiguration pc, Pool p) { if (mcf == null) throw new IllegalArgumentException("ManagedConnectionFactory is null"); if (clf == null) throw new IllegalArgumentException("ConnectionListenerFactory is null"); if (pc == null) throw new IllegalArgumentException("PoolConfiguration is null"); if (p == null) throw new IllegalArgumentException("Pool is null"); this.mcf = mcf; this.clf = clf; this.defaultSubject = subject; this.defaultCri = cri; this.poolConfiguration = pc; this.maxSize = pc.getMaxSize(); this.pool = p; this.log = pool.getLogger(); this.debug = log.isDebugEnabled(); this.trace = log.isTraceEnabled(); this.cls = new ArrayList<ConnectionListener>(this.maxSize); this.statistics = new ManagedConnectionPoolStatisticsImpl(maxSize); this.statistics.setEnabled(p.getStatistics().isEnabled()); this.permits = new Semaphore(maxSize, true, statistics); this.filoPoolBehavior = false; String value = SecurityActions.getSystemProperty("ironjacamar.filo_pool_behavior"); if (value != null && !value.trim().equals("")) { try { filoPoolBehavior = Boolean.valueOf(value); } catch (Throwable t) { StringTokenizer st = new StringTokenizer(value,","); while (st.hasMoreTokens()) { if (st.nextToken().equals(pool.getName())) { filoPoolBehavior = true; } } if (!filoPoolBehavior) log.debugf(pool.getName() + " running as FIFO"); else log.debugf(pool.getName() + " running as FILO"); } } if ((pc.isPrefill() || pc.isStrictMin()) && p instanceof PrefillPool && pc.getMinSize() > 0) { PoolFiller.fillPool(this); } reenable(); }

Target:
public void initialize(ManagedConnectionFactory mcf, ConnectionListenerFactory clf, Subject subject, ConnectionRequestInfo cri, PoolConfiguration pc, Pool p) { if (mcf == null) throw new IllegalArgumentException("ManagedConnectionFactory is null"); if (clf == null) throw new IllegalArgumentException("ConnectionListenerFactory is null"); if (pc == null) throw new IllegalArgumentException("PoolConfiguration is null"); if (p == null) throw new IllegalArgumentException("Pool is null"); this.mcf = mcf; this.clf = clf; this.defaultSubject = subject; this.defaultCri = cri; this.poolConfiguration = pc; this.maxSize = pc.getMaxSize(); this.pool = p; this.log = pool.getLogger(); this.debug = log.isDebugEnabled(); this.trace = log.isTraceEnabled(); this.cls = new ArrayList<ConnectionListener>(this.maxSize); this.statistics = new ManagedConnectionPoolStatisticsImpl(maxSize); this.statistics.setEnabled(p.getStatistics().isEnabled()); this.permits = new Semaphore(maxSize, true, statistics); this.filoPoolBehavior = false; String value = SecurityActions.getSystemProperty("ironjacamar.filo_pool_behavior"); if (value != null && !value.trim().equals("")) { try { filoPoolBehavior = Boolean.valueOf(value); } catch (Throwable t) { StringTokenizer st = new StringTokenizer(value,","); while (st.hasMoreTokens()) { if (st.nextToken().equals(pool.getName())) { filoPoolBehavior = true; } } } } if (!filoPoolBehavior) log.debugf("%s running as FIFO", pool.getName()); else log.debugf("%s running as FILO", pool.getName()); if ((pc.isPrefill() || pc.isStrictMin()) && p instanceof PrefillPool && pc.getMinSize() > 0) { PoolFiller.fillPool(this); } reenable(); }