453454455456457458459460461462463
ActiveMQMessage msg = (ActiveMQMessage) i.next(); inboundMessages.remove(msg);//else they will be added twice msg.setJMSRedelivered(true); dispatch(msg); } replay.clear(); } } /** * Returns the session's distinguished message listener (optional).