99499599699799899910001001100210031004
if ((i + 1) % messagesPerTX == 0) { session.commit(); } } session.commit(); session.start(); for (int i = 1; i <= 2; i++) {
10131014101510161017101810191020102110221023
assertEquals("str-" + j, msg.getStringProperty("id")); msg.acknowledge(); } session.commit(); } session.close(); }
10691070107110721073107410751076107710781079
assertEquals("str-" + j, msg.getStringProperty("id")); msg.acknowledge(); } session.commit(); assertNull(cons.receive(500)); } session.close();
11501151115211531154115511561157115811591160
message.putIntProperty(new SimpleString("id"), i); producer.send(message); if (i % 1000 == 0) { session.commit(); } } session.commit();
11541155115611571158115911601161116211631164
{ session.commit(); } } session.commit(); session.start(); ClientConsumer consumer = session.createConsumer(PagingTest.ADDRESS);
11691170117111721173117411751176117711781179
message.acknowledge(); assertEquals(i, message.getIntProperty("id").intValue()); if (i % 1000 == 0) { session.commit(); } } session.commit();
11731174117511761177117811791180118111821183
{ session.commit(); } } session.commit(); session.commit(); session.commit();
11751176117711781179118011811182118311841185
} } session.commit(); session.commit(); session.commit(); PagingStore store = server.getPagingManager().getPageStore(ADDRESS); store.getCursorProvier().cleanup();
11771178117911801181118211831184118511861187
session.commit(); session.commit(); session.commit(); PagingStore store = server.getPagingManager().getPageStore(ADDRESS); store.getCursorProvier().cleanup(); long timeout = System.currentTimeMillis() + 5000;
13511352135313541355135613571358135913601361
for (int i = 0; i < numberOfMessages; i++) { if (i % 500 == 0) { log.info("Sent " + i + " messages"); session.commit(); } message = session.createMessage(true); HornetQBuffer bodyLocal = message.getBodyBuffer();