Assert.assertEquals("Integer-Value", i, I.intValue());
Assert.assertTrue(i + ":redelivered", !omsg.getJMSRedelivered());
}
/* rollback session and receive message again */
ml.clearMessagesReceived();
s_rec.rollback();
/* AGAIN:Receive the messages in the queue */
/* give the provider a bit of time to deliver the messages */
Thread.sleep(3000);
Assert.assertEquals("No of messages received", num, ml.noOfMessagesReceived());
/* Check the content of the messages */