Skip to content

Commit

Permalink
AMQ-7490 - Fix JMX regression
Browse files Browse the repository at this point in the history
(cherry picked from commit aa8900c)
  • Loading branch information
coheigea authored and jbonofre committed May 23, 2020
1 parent 82f3658 commit 0d6e5f2
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 0d6e5f2

Please sign in to comment.