mirror of https://github.com/apache/activemq.git
check for message order
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@587091 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
13fc99769f
commit
565588c13d
|
@ -79,7 +79,10 @@ public class PerfConsumer implements MessageListener {
|
|||
public void onMessage(Message msg) {
|
||||
rate.increment();
|
||||
try {
|
||||
if (this.audit.isDuplicateMessage(msg)){
|
||||
if (!this.audit.isInOrder(msg.getJMSMessageID())) {
|
||||
LOG.error("Message out of order!!" + msg);
|
||||
}
|
||||
if (this.audit.isDuplicate(msg)){
|
||||
LOG.error("Duplicate Message!" + msg);
|
||||
}
|
||||
} catch (JMSException e1) {
|
||||
|
|
Loading…
Reference in New Issue