From 592e18ea9be11cdd071e14873dc1331426ae3999 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Thu, 22 Oct 2009 10:37:51 +0000 Subject: [PATCH] Fix for https://issues.apache.org/activemq/browse/AMQ-2461 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@828645 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/activemq/plugin/StatisticsBroker.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activemq-core/src/main/java/org/apache/activemq/plugin/StatisticsBroker.java b/activemq-core/src/main/java/org/apache/activemq/plugin/StatisticsBroker.java index c04b87b51b..1d10778d7c 100644 --- a/activemq-core/src/main/java/org/apache/activemq/plugin/StatisticsBroker.java +++ b/activemq-core/src/main/java/org/apache/activemq/plugin/StatisticsBroker.java @@ -104,6 +104,7 @@ public class StatisticsBroker extends BrokerFilter { statsMessage.setDouble("minEnqueueTime", stats.getProcessTime().getMinTime()); statsMessage.setLong("consumerCount", stats.getConsumers().getCount()); statsMessage.setLong("producerCount", stats.getProducers().getCount()); + statsMessage.setJMSCorrelationID(messageSend.getCorrelationId()); sendStats(producerExchange.getConnectionContext(), statsMessage, replyTo); } } @@ -154,6 +155,7 @@ public class StatisticsBroker extends BrokerFilter { File file = brokerService.getDataDirectoryFile(); answer = file != null ? file.getCanonicalPath() : ""; statsMessage.setString("dataDirectory", answer); + statsMessage.setJMSCorrelationID(messageSend.getCorrelationId()); sendStats(producerExchange.getConnectionContext(), statsMessage, replyTo); } else { super.send(producerExchange, messageSend);