mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-4609 - register network connectors after mbean server is properly started
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1497733 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a95c6dba1b
commit
6b1ffaeee3
|
@ -418,9 +418,6 @@ public class BrokerService implements Service {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
networkConnectors.add(connector);
|
networkConnectors.add(connector);
|
||||||
if (isUseJmx()) {
|
|
||||||
registerNetworkConnectorMBean(connector);
|
|
||||||
}
|
|
||||||
return connector;
|
return connector;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -560,6 +557,9 @@ public class BrokerService implements Service {
|
||||||
MDC.remove("activemq.broker");
|
MDC.remove("activemq.broker");
|
||||||
try {
|
try {
|
||||||
startManagementContext();
|
startManagementContext();
|
||||||
|
for (NetworkConnector connector : getNetworkConnectors()) {
|
||||||
|
registerNetworkConnectorMBean(connector);
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
MDC.put("activemq.broker", brokerName);
|
MDC.put("activemq.broker", brokerName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue