return getCM(pp, 0, 5000);
}
private BaseConnectionManager2 getCM(InternalManagedConnectionPool.PoolParams pp, int ar, int arwm) throws Exception
{
ManagedConnectionFactory mcf = new TestManagedConnectionFactory();
ManagedConnectionPool poolingStrategy = new JBossManagedConnectionPool.OnePool(mcf, pp, false, log);
BaseConnectionManager2 cm = new NoTxConnectionManager(ccm, poolingStrategy);
cm.setAllocationRetry(ar);
cm.setAllocationRetryWaitMillis(arwm);
poolingStrategy.setConnectionListenerFactory(cm);