505506507508509510511512513514515
MessageConsumer consumer = consumerSess.createConsumer(HornetQServerTestCase.queue1); xaConn.start(); DummyXAResource res = new DummyXAResource(); mgr.begin(); tx = mgr.getTransaction(); tx.enlistResource(res);
529530531532533534535536537538539
tx.delistResource(consumerSess.getXAResource(), XAResource.TMSUCCESS); mgr.rollback(); mgr.begin(); tx = mgr.getTransaction(); tx.enlistResource(res);
553554555556557558559560561562563
587588589590591592593594595596597
consumerSess = xaConn.createXASession(); consumer = consumerSess.createConsumer(HornetQServerTestCase.queue1); mgr.begin(); tx = mgr.getTransaction(); tx.enlistResource(res);