898899900901902903904905906907908
message.putIntProperty(new SimpleString("id"), i); producer.send(message); if (i % 1000 == 0) { session.commit(); } } session.commit();
902903904905906907908909910911912
{ session.commit(); } } session.commit(); session.start(); ClientConsumer consumer = session.createConsumer(PagingTest.ADDRESS);
917918919920921922923924925926927
message.acknowledge(); assertEquals(i, message.getIntProperty("id").intValue()); if (i % 1000 == 0) { session.commit(); } } session.commit();
921922923924925926927928929930931
{ session.commit(); } } session.commit(); session.commit(); session.commit();
923924925926927928929930931932933
} } session.commit(); session.commit(); session.commit(); PagingStore store = server.getPagingManager().getPageStore(ADDRESS); store.getCursorProvier().cleanup();
925926927928929930931932933934935
session.commit(); session.commit(); session.commit(); PagingStore store = server.getPagingManager().getPageStore(ADDRESS); store.getCursorProvier().cleanup(); long timeout = System.currentTimeMillis() + 5000;
10641065106610671068106910701071107210731074
for (int i = 0; i < numberOfMessages; i++) { if (i % 500 == 0) { session.commit(); } message = session.createMessage(true); HornetQBuffer bodyLocal = message.getBodyBuffer();
10771078107910801081108210831084108510861087
message.putIntProperty(new SimpleString("id"), i); producer.send(message); } session.commit(); session.close(); server.stop();
11311132113311341135113611371138113911401141
message2.acknowledge(); Assert.assertNotNull(message2); if (i % 1000 == 0) session.commit(); try { assertBodiesEqual(body, message2.getBodyBuffer()); }
11471148114911501151115211531154115511561157
.array(), 40)); throw e; } } session.commit(); consumer.close(); session.close(); }