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);
if (pp.prefill)
{
BasePool bp = (BasePool)poolingStrategy;