50065007500850095010501150125013501450155016
assertEquals(0, queue.browse(null).size()); // no message at the receiver assertTrue(r.getMessages().isEmpty()); tx.rollback(); // no messages in the channel assertEquals(0, queue.browse(null).size()); // no message at the receiver
50525053505450555056505750585059506050615062
514515516517518519520521522523524
Transaction tx = tr.getPreparedTx(request.getXid()); if (trace) { log.trace(this + " rolling back " + tx); } tx.rollback(); } if (trace) { log.trace(this + " processed transaction successfully"); } } catch (Throwable t)
18901891189218931894189518961897189818991900
tx.commit(); } catch (Throwable t) { tx.rollback(); throw t; } //Need to prompt delivery on the dlq/expiry queue
16901691169216931694169516961697169816991700
498499500501502503504505506507508
17311732173317341735173617371738173917401741
527528529530531532533534535536537
Transaction tx = tr.getPreparedTx(request.getXid()); if (trace) { log.trace(this + " rolling back " + tx); } tx.rollback(request.getState().isRecovered()); } if (trace) { log.trace(this + " processed transaction successfully"); } } catch (Throwable t)
31373138313931403141314231433144314531463147
} // no messages in the channel yet assertEquals(0, queue.browse(null).size()); tx.rollback(); // still no messages in the channel assertEquals(0, queue.browse(null).size()); }
31763177317831793180318131823183318431853186