Skip to content
Permalink
Browse files
AMQ-7490 - Fix JMX regression
  • Loading branch information
coheigea committed May 22, 2020
1 parent 62cfe83 commit aa8900ca70e6f9422490c1a03627400375d3ff83
Showing 1 changed file with 1 addition and 2 deletions.
@@ -587,13 +587,12 @@ private void createConnector(MBeanServer mbeanServer) throws MalformedObjectName
rmiServer = ""+getConnectorHost()+":" + rmiServerPort;
}

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

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

connectorServer = new RMIConnectorServer(url, env, server, ManagementFactory.getPlatformMBeanServer());
connectorServer = new RMIConnectorServer(url, environment, server, ManagementFactory.getPlatformMBeanServer());
LOG.debug("Created JMXConnectorServer {}", connectorServer);
}

0 comments on commit aa8900c

Please sign in to comment.