From eef92026754b0cc94c2b0ba21ece0b531b518b97 Mon Sep 17 00:00:00 2001 From: Dennis Cook Date: Fri, 13 Jan 2006 23:11:20 +0000 Subject: [PATCH] AMQ-484: Restore discoveryUri when replacing TransportConnector with ManagedTransportConnector git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@368911 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/activemq/broker/BrokerService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java b/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java index 32447e2a30..2919abfabd 100644 --- a/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java @@ -144,7 +144,9 @@ public class BrokerService implements Service { */ public TransportConnector addConnector(TransportConnector connector) throws Exception { if (isUseJmx()) { + URI discoveryUri = connector.getDiscoveryUri(); connector = connector.asManagedConnector(getManagementContext().getMBeanServer(), getBrokerObjectName()); + connector.setDiscoveryUri(discoveryUri); } connector.setBroker(getBroker()); transportConnectors.add(connector);