tm.suspend();
}
public void testSuspendResume() throws Exception
{
TransactionLocal local = new TransactionLocal(tm);
tm.begin();
Transaction tx1 = tm.getTransaction();
try
{
local.set("Something");
assertEquals("Something", local.get());
tm.suspend();
tm.begin();
try
{
Transaction tx2 = tm.getTransaction();
assertEquals(null, local.get());
assertEquals("Something", local.get(tx1));
tm.suspend();
tm.resume(tx1);
assertEquals("Something", local.get());
assertEquals(null, local.get(tx2));
tm.suspend();
tm.resume(tx2);
}
finally
{