if (!replay.isEmpty()) {
for (ListIterator i = replay.listIterator(replay.size());i.hasPrevious();) {
ActiveMQMessage msg = (ActiveMQMessage) i.previous();
if (!onlyDeliverTransientConsumed || msg.isTransientConsumed()) {
msg.setJMSRedelivered(true);
msg.incrementDeliveryCount();
messageExecutor.executeFirst(msg);
}
}
}
replay.clear();