520521522523524525526527528529530
xid = newXID(); session = sessionFactory.createSession(true, false, false); session.start(xid, XAResource.TMNOFLAGS); session.end(xid, XAResource.TMSUCCESS); session.prepare(xid); session.rollback(xid); session.close(); messagingService.start();
532533534535536537538539540541542
xid = newXID(); session = sessionFactory.createSession(true, false, false); session.start(xid, XAResource.TMNOFLAGS); session.end(xid, XAResource.TMSUCCESS); session.rollback(xid); session.close(); messagingService.stop(); messagingService.start();
558559560561562563564565566567568
{ Xid xid = newXID(); ClientSession session = sessionFactory.createSession(true, false, false); session.start(xid, XAResource.TMNOFLAGS); session.end(xid, XAResource.TMFAIL); session.rollback(xid); session.close(); }
183184185186187188189190191192193
} // Now rollback long now = System.currentTimeMillis(); session2.rollback(); // This should redeliver with a delayed redelivery for (int i = 0; i < NUM_MESSAGES; i++) {
167168169170171172173174175176177
Xid[] xids = session.recover(XAResource.TMSTARTRSCAN); Assert.assertEquals(1, xids.length); Assert.assertEquals(xid, xids[0]); session.rollback(xid); session.close(); sf.close(); }
317318319320321322323324325326327
session.start(); ClientConsumer cons = session.createConsumer(queue); Assert.assertNotNull(cons.receive(1000)); session.rollback(); session.close(); } protected void stopServer() throws Exception {
926927928929930931932933934935936
ClientProducer producer = sessSend.createProducer(MultiThreadRandomReattachTestBase.ADDRESS); sendMessages(sessSend, producer, numMessages, threadNum); sessSend.rollback(); sendMessages(sessSend, producer, numMessages, threadNum); sessSend.commit();
10051006100710081009101010111012101310141015
539540541542543544545546547548549
651652653654655656657658659660661