You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2020/05/23 04:37:59 UTC
[activemq] branch activemq-5.15.x updated: AMQ-7490 - Fix JMX
regression
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch activemq-5.15.x
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-5.15.x by this push:
new 0d6e5f2 AMQ-7490 - Fix JMX regression
0d6e5f2 is described below
commit 0d6e5f240ef34bae2e4089102047593bef628e6c
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Fri May 22 09:56:59 2020 +0100
AMQ-7490 - Fix JMX regression
(cherry picked from commit aa8900ca70e6f9422490c1a03627400375d3ff83)
---
.../main/java/org/apache/activemq/broker/jmx/ManagementContext.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
index b0ce0ff..733032f 100644
--- a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
+++ b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
@@ -587,13 +587,12 @@ public class ManagementContext implements Service {
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);
}