assertEquals("cannot close a resource when its XAResource is taking part in an unfinished global transaction", ex.getCause().getMessage());
}
assertEquals(POOL_SIZE -1, pool1.inPoolSize());
if (log.isDebugEnabled()) { log.debug("*** committing 2nd tx"); }
tm.commit();
assertEquals(POOL_SIZE -1, pool1.inPoolSize());
if (log.isDebugEnabled()) { log.debug("*** resuming"); }
tm.resume(t1);