285286287288289290291292293294295
tm.begin(); long startGetConnection = System.currentTimeMillis(); cl = cm.getManagedConnection(subject, cri); cl.enlist(); long endGetConnection = System.currentTimeMillis(); TxConnectionManagerStressTestCase.this.connectionCount.incrementAndGet(); Thread.sleep(sleepTime);
497498499500501502503504505506507
tm.begin(); Transaction tx = tm.getTransaction(); tx.registerSynchronization(this); cl = cm.getManagedConnection(subject, cri); cl.enlist(); latch.await(20, TimeUnit.SECONDS); assertNotNull(tm);