29152916291729182919292029212922292329242925
message.putIntProperty(new SimpleString("id"), i); producer.send(message); } session.commit(); session.close(); locator.close();
29482949295029512952295329542955295629572958
System.out.println("Received " + i); ClientMessage msg = consumer.receive(5000); assertEquals(i, msg.getIntProperty("id").intValue()); Assert.assertNotNull(msg); msg.acknowledge(); session.commit(); } session.close(); locator.close();
29812982298329842985298629872988298929902991
System.out.println("Received " + i); ClientMessage msg = consumer.receive(5000); assertEquals(i, msg.getIntProperty("id").intValue()); Assert.assertNotNull(msg); msg.acknowledge(); session.commit(); } session.close(); } finally
31113112311331143115311631173118311931203121
message.getBodyBuffer().writeBytes(body); producer.send(message); } session.commit(); consumer = session.createConsumer(PagingTest.ADDRESS); session.start();
31263127312831293130313131323133313431353136
Assert.assertNotNull(message2); message2.acknowledge(); } session.commit(); Assert.assertNull(consumer.receiveImmediate()); session.close();
32963297329832993300330133023303330433053306
{ producer.send(message); if (transacted) { session.commit(); } } session.close();
36343635363636373638363936403641364236433644
ack.acknowledge(); } consumerNonPaged.close(); session.commit(); ackList = null; for (int i = 0; i < NUMBER_OF_MESSAGES; i++) {
36433644364536463647364836493650365136523653
for (int i = 0; i < NUMBER_OF_MESSAGES; i++) { ClientMessage msg = consumerPaged.receive(5000); Assert.assertNotNull(msg); msg.acknowledge(); session.commit(); } Assert.assertNull(consumerPaged.receiveImmediate()); session.close();
45504551455245534554455545564557455845594560
}); } assertNull(cons.receiveImmediate()); session.commit(); cons.close(); long timeout = System.currentTimeMillis() + 5000;
19531954195519561957195819591960196119621963
ClientConsumer consumer = session.createConsumer(PagingTest.ADDRESS); Assert.assertNull(consumer.receiveImmediate()); sessionTransacted.commit(); sessionTransacted.close(); for (int i = 0; i < 10; i++) {