41604161416241634164416541664167416841694170
r.acknowledge(ackm, tx); } assertEquals(NUMBER_OF_MESSAGES, queue.getDeliveringCount()); tx.rollback(); assertEquals(NUMBER_OF_MESSAGES, queue.getDeliveringCount()); // acknowledge non-transactionally for(Iterator i = r.getMessages().iterator(); i.hasNext();)
43984399440044014402440344044405440644074408
r.acknowledge(ackm, tx); deliveringCount = queue.getDeliveringCount(); assertEquals(1, deliveringCount); tx.rollback(); deliveringCount = queue.getDeliveringCount(); assertEquals(1, deliveringCount); // acknowledge non-transactionally
45454546454745484549455045514552455345544555
48694870487148724873487448754876487748784879
// 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
49154916491749184919492049214922492349244925
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
17061707170817091710171117121713171417151716
tx.commit(); } catch (Throwable t) { tx.rollback(); throw t; } //Need to prompt delivery on the dlq/expiry queue
799800801802803804805806807808809
queue.handle(observer, ref, tx); // 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()); }
837838839840841842843844845846847
} // 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()); }
874875876877878879880881882883884
912913914915916917918919920921922