639640641642643644645646647648649
assertNotNull(message); assertEquals(i, message.getIntProperty("id").intValue()); message.acknowledge(); } session.rollback(); session.close(); session = sf.createSession(false, false, 0);
777778779780781782783784785786787
ClientMessage msg = consumer.receive(5000); assertNotNull(msg); int msgIDRolledBack = msg.getIntProperty("id").intValue(); msg.acknowledge(); session.rollback(); msg = consumer.receive(5000); assertNotNull(msg);
785786787788789790791792793794795
assertNotNull(msg); assertEquals(msgIDRolledBack, msg.getIntProperty("id").intValue()); session.rollback(); session.close(); sf.close(); locator.close();
24232424242524262427242824292430243124322433
message.putIntProperty(new SimpleString("id"), i); producer.send(message); } session.rollback(); ClientConsumer consumer = session.createConsumer(PagingTest.ADDRESS); session.start();
42654266426742684269427042714272427342744275
for (int j = 0; j < messageSize; j++) { assertEquals(getSamplebyte(j), msg.getBodyBuffer().readByte()); } session.rollback(); } pgStoreDLA.startPaging(); }
27442745274627472748274927502751275227532754
28462847284828492850285128522853285428552856
43674368436943704371437243734374437543764377
140141142143144145146147148149150
Assert.assertEquals(Integer.toString(i), getTextMessage(msg)); // No ACK done, so deliveryCount should be always = 1 Assert.assertEquals(1, msg.getDeliveryCount()); } session.rollback(); } if (persistent) { session.close();
178179180181182183184185186187188
session.start(); consumer = session.createConsumer(ADDRESS); } else { session.rollback(); } } } session.close();