36463647364836493650365136523653365436553656
// 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
36933694369536963697369836993700370137023703
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
37393740374137423743374437453746374737483749
37853786378737883789379037913792379337943795
38323833383438353836383738383839384038413842
40164017401840194020402140224023402440254026
r.acknowledge(ackm, tx); deliveringCount = queue.getDeliveringCount(); assertEquals(1, deliveringCount); tx.rollback(); deliveringCount = queue.getDeliveringCount(); assertEquals(1, deliveringCount); // acknowledge non-transactionally
41614162416341644165416641674168416941704171
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();)
43994400440144024403440444054406440744084409
45464547454845494550455145524553455445554556
48704871487248734874487548764877487848794880