206207208209210211212213214215216
ProxyAssertSupport.assertEquals(xid1, xids[0]); log.trace("Committing the tx"); // Commit res3.commit(xids[0], false); log.trace("committed the tx"); conn1.close();
701702703704705706707708709710711
ProxyAssertSupport.assertEquals(xid1, xids[0]); log.trace("Committing the tx"); // Commit res3.commit(xids[0], false); log.trace("committed the tx"); conn1 = JMSTestCase.cf.createConnection();
11901191119211931194119511961197119811991200
// prepare it res.prepare(xid1); res.commit(xid1, false); conn1.close(); conn2.close();
15291530153115321533153415351536153715381539
log.trace("still can't see message"); // Commit the tx res3.commit(xids[0], false); log.trace("committed"); // The message should now be available
18031804180518061807180818091810181118121813
ProxyAssertSupport.assertEquals(xid1, xids[0]); // Commit the tx res3.commit(xids[0], false); // The message should be acknowldged conn3.close();
20092010201120122013201420152016201720182019
ProxyAssertSupport.assertEquals(xid1, xids[0]); log.trace("Committing the tx"); // Commit res3.commit(xids[0], false); log.trace("committed the tx"); conn2.close();
22792280228122822283228422852286228722882289
25172518251925202521252225232524252525262527
log.trace("comitting"); // Commit tx1 res.commit(xid1, false); log.trace("comitted"); // Should now be able to receive tm1 and tm2
25382539254025412542254325442545254625472548
TextMessage m3 = (TextMessage)cons.receive(1000); ProxyAssertSupport.assertNull(m3); // Now commit tx2 res.commit(xid2, false); // Should now be able to receive tm3 and tm4 m3 = (TextMessage)cons.receive(HornetQServerTestCase.MAX_TIMEOUT); ProxyAssertSupport.assertNotNull(m3);
26782679268026812682268326842685268626872688
ProxyAssertSupport.assertEquals(0, xids2.length); ProxyAssertSupport.assertTrue(xids[0].equals(xid1) || xids[1].equals(xid1)); ProxyAssertSupport.assertTrue(xids[0].equals(xid2) || xids[1].equals(xid2)); res.commit(xid1, false); res.commit(xid2, false); conn3 = JMSTestCase.cf.createConnection();