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

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@888323 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2009-12-08 11:12:45 +00:00
parent 72b73f06cd
commit 4969866569
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();