329330331332333334335336337338339
cl.enlist(); assertNotNull(tm); tm.commit(); cl.delist(); cm.returnManagedConnection(cl, false); cl = null; assertEquals(0, cm.getPoolingStrategy().getInUseConnectionCount()); }
382383384385386387388389390391392
assertNotNull(cl); cl.enlist(); Thread.sleep(2500L); cl.delist(); cm.returnManagedConnection(cl, false); cl = null; assertEquals(0, cm.getPoolingStrategy().getInUseConnectionCount());
300301302303304305306307308309310
tm.commit(); long startReturnConnection = System.currentTimeMillis(); if (!trackByTx) { cl.delist(); cm.returnManagedConnection(cl, false); } cl = null; long endReturnConnection = System.currentTimeMillis();
509510511512513514515516517518519
if (tx != null && TxUtils.isActive(tx)) failed = true; if (!trackByTx) { cl.delist(); cm.returnManagedConnection(cl, false); } cl = null; }
330331332333334335336337338339340
383384385386387388389390391392393