ccm = (CachedConnectionManager) server.getAttribute(CachedConnectionManagerMBean.OBJECT_NAME, "Instance");
mcf = new TestManagedConnectionFactory();
InternalManagedConnectionPool.PoolParams pp = new InternalManagedConnectionPool.PoolParams();
pp.maxSize = getMaxPoolSize();
ManagedConnectionPool poolingStrategy = new JBossManagedConnectionPool.OnePool(mcf, pp, false, poolLog);
cri = new TestConnectionRequestInfo();
cm = new TxConnectionManager(ccm, poolingStrategy, tm);
if (isSticky())
{
cm.setInterleaving(false);
mcf.setFailJoin(true);
}
else
{
cm.setInterleaving(true);
mcf.setFailJoin(false);
}
mcf.setSleepInStart(200);
mcf.setSleepInEnd(200);
cm.setLocalTransactions(false);
poolingStrategy.setConnectionListenerFactory(cm);
cf = new TestConnectionFactory(new ConnectionManagerProxy(), mcf);
}