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);