You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ra...@apache.org on 2009/10/22 12:37:52 UTC

svn commit: r828645 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/plugin/StatisticsBroker.java

Author: rajdavies
Date: Thu Oct 22 10:37:51 2009
New Revision: 828645

URL: http://svn.apache.org/viewvc?rev=828645&view=rev
Log:
Fix for https://issues.apache.org/activemq/browse/AMQ-2461

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/plugin/StatisticsBroker.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/plugin/StatisticsBroker.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/plugin/StatisticsBroker.java?rev=828645&r1=828644&r2=828645&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/plugin/StatisticsBroker.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/plugin/StatisticsBroker.java Thu Oct 22 10:37:51 2009
@@ -104,6 +104,7 @@
                         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 @@
                 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);