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:
Bosanac Dejan 2013-06-28 10:58:31 +00:00
parent a95c6dba1b
commit 6b1ffaeee3
1 changed files with 3 additions and 3 deletions

View File

@ -418,9 +418,6 @@ public class BrokerService implements Service {
}
});
networkConnectors.add(connector);
if (isUseJmx()) {
registerNetworkConnectorMBean(connector);
}
return connector;
}
@ -560,6 +557,9 @@ public class BrokerService implements Service {
MDC.remove("activemq.broker");
try {
startManagementContext();
for (NetworkConnector connector : getNetworkConnectors()) {
registerNetworkConnectorMBean(connector);
}
} finally {
MDC.put("activemq.broker", brokerName);
}