activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r698603 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/view/ConnectionDotFileInterceptor.java
Date Wed, 24 Sep 2008 15:02:45 GMT
Author: rajdavies
Date: Wed Sep 24 08:02:45 2008
New Revision: 698603

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

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/view/ConnectionDotFileInterceptor.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/view/ConnectionDotFileInterceptor.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/view/ConnectionDotFileInterceptor.java?rev=698603&r1=698602&r2=698603&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/view/ConnectionDotFileInterceptor.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/view/ConnectionDotFileInterceptor.java
Wed Sep 24 08:02:45 2008
@@ -16,6 +16,7 @@
  */
 package org.apache.activemq.broker.view;
 
+import java.io.IOException;
 import java.io.PrintWriter;
 import java.util.Collection;
 import java.util.HashMap;
@@ -61,12 +62,12 @@
     private Map<ProducerId, Set<ActiveMQDestination>> producerDestinations =
new HashMap<ProducerId, Set<ActiveMQDestination>>();
     private Object lock = new Object();
 
-    public ConnectionDotFileInterceptor(Broker next, String file, boolean redrawOnRemove)
throws MalformedObjectNameException {
+    public ConnectionDotFileInterceptor(Broker next, String file, boolean redrawOnRemove)
throws IOException {
         super(next, file);
         this.redrawOnRemove = redrawOnRemove;
 
         mbeanServer = new ManagementContext().getMBeanServer();
-        ObjectName brokerName = new ObjectName(domain + ":Type=Broker,BrokerName=localhost");
+        ObjectName brokerName = next.getBrokerService().getBrokerObjectName();
         brokerView = (BrokerViewMBean)MBeanServerInvocationHandler.newProxyInstance(mbeanServer,
brokerName, BrokerViewMBean.class, true);
     }
 



Mime
View raw message