Skip to content

Commit 88b78d0

Browse files
authored
Merge pull request #539 from coheigea/AMQ-7490
AMQ-7490 - Fix JMX regression
2 parents 62cfe83 + aa8900c commit 88b78d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -587,13 +587,12 @@ private void createConnector(MBeanServer mbeanServer) throws MalformedObjectName
587587
rmiServer = ""+getConnectorHost()+":" + rmiServerPort;
588588
}
589589

590-
final Map<String,Object> env = new HashMap<>();
591590
server = new RMIJRMPServerImpl(connectorPort, null, null, environment);
592591

593592
final String serviceURL = "service:jmx:rmi://" + rmiServer + "/jndi/rmi://" +getConnectorHost()+":" + connectorPort + connectorPath;
594593
final JMXServiceURL url = new JMXServiceURL(serviceURL);
595594

596-
connectorServer = new RMIConnectorServer(url, env, server, ManagementFactory.getPlatformMBeanServer());
595+
connectorServer = new RMIConnectorServer(url, environment, server, ManagementFactory.getPlatformMBeanServer());
597596
LOG.debug("Created JMXConnectorServer {}", connectorServer);
598597
}
599598

0 commit comments

Comments
 (0)