699700701702703704705706707708709
res.end(xid1, XAResource.TMSUCCESS); //prepare it res.prepare(xid1); conn1.close(); conn2.close(); conn1 = null;
967968969970971972973974975976977
12241225122612271228122912301231123212331234
res.end(xid1, XAResource.TMSUCCESS); //prepare it res.prepare(xid1); res.commit(xid1, false); conn1.close();
10971098109911001101110211031104110511061107
prod1.send(tm1); res1.end(trailing, XAResource.TMSUCCESS); res1.prepare(trailing); //Now "crash" the server ServerManagement.stopServerPeer();
252253254255256257258259260261262
prod.send(tm); res.end(xid1, XAResource.TMSUCCESS); res.prepare(xid1); } {
274275276277278279280281282283284
prod.send(tm); res.end(xid2, XAResource.TMSUCCESS); res.prepare(xid2); } List txList = (List)ServerManagement.invoke(ServerManagement.getServerPeerObjectName(), "retrievePreparedTransactions", null, null);
173174175176177178179180181182183
{ HornetQJMSServerLogger.LOGGER.debug("prepare " + xaResource + " xid "); } try { return xaResource.prepare(xid); } catch (XAException e) { throw check(e); }
288289290291292293294295296297298
// next message should not be received. rm1 = (TextMessage)cons.receive(2000); assertNull(rm1); // prepare the tx res1.prepare(xid1); res1.commit(xid1, false); rm1 = (TextMessage)cons.receive(2000); assertNotNull(rm1);
403404405406407408409410411412413
res1.end(xid1, XAResource.TMSUCCESS); // prepare the tx res1.prepare(xid1); conn1.close(); xconn1.close();
158159160161162163164165166167168
{ XAResource xaResource = getDelegate(true); HornetQXAResourceWrapper.log.debug("prepare " + xaResource + " xid "); try { return xaResource.prepare(xid); } catch (XAException e) { throw check(e); }