Skip to content

Commit

Permalink
Merge pull request #539 from coheigea/AMQ-7490
Browse files Browse the repository at this point in the history
AMQ-7490 - Fix JMX regression
  • Loading branch information
jbonofre committed May 23, 2020
2 parents 62cfe83 + aa8900c commit 88b78d0
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -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);
}

Expand Down

0 comments on commit 88b78d0

Please sign in to comment.