437438439440441442443444445446447
{ PagedReference msg = iterator.next(); assertEquals(i, msg.getMessage().getIntProperty("key").intValue()); if (i < 10 || i > 20) { cursor.ackTx(tx, msg); } } tx.commit();
458459460461462463464465466467468
for (int i = 10; i <= 20; i++) { PagedReference msg = iterator.next(); assertEquals(i, msg.getMessage().getIntProperty("key").intValue()); cursor.ackTx(tx, msg); } for (int i = 100; i < NUM_MESSAGES; i++) { PagedReference msg = iterator.next();
465466467468469470471472473474475
for (int i = 100; i < NUM_MESSAGES; i++) { PagedReference msg = iterator.next(); assertEquals(i, msg.getMessage().getIntProperty("key").intValue()); cursor.ackTx(tx, msg); } tx.commit(); server.stop();
438439440441442443444445446447448
459460461462463464465466467468469
466467468469470471472473474475476
353354355356357358359360361362363