notify listener after the enqueue

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372844 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gregory John Wilkins 2006-01-27 13:31:17 +00:00
parent 2f944a19e3
commit 6a70920b20
1 changed files with 1 additions and 1 deletions

View File

@ -716,10 +716,10 @@ public class ActiveMQMessageConsumer implements MessageAvailableConsumer, StatsC
listener.onMessage(message);
afterMessageIsConsumed(md, false);
} else {
unconsumedMessages.enqueue(md);
if (availableListener != null) {
availableListener.onMessageAvailable(this);
}
unconsumedMessages.enqueue(md);
}
}
} catch (Exception e) {