Skip to content

Commit

Permalink
AMQ-7490 - Fix JMX regression
Browse files Browse the repository at this point in the history
  • Loading branch information
coheigea committed May 22, 2020
1 parent 62cfe83 commit aa8900c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
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 aa8900c

Please sign in to comment.