merging 888323 - https://issues.apache.org/activemq/browse/AMQ-2513 - JMX bug - javax.management.InstanceNotFoundException

git-svn-id: https://svn.apache.org/repos/asf/activemq/branches/activemq-5.3@888329 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2009-12-08 11:15:27 +00:00
parent 65c1d93201
commit 4993f82727
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ public class BrokerService implements Service {
addShutdownHook();
getBroker().start();
if (isUseJmx()) {
if (!getManagementContext().isConnectorStarted()) {
if (getManagementContext().isCreateConnector() && !getManagementContext().isConnectorStarted()) {
// try to restart management context
// typical for slaves that use the same ports as master
managementContext.stop();