activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [activemq] branch master updated: AMQ-7490 - Fix JMX regression
Date Sat, 23 May 2020 04:37:19 GMT
This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/master by this push:
     new aa8900c  AMQ-7490 - Fix JMX regression
     new 88b78d0  Merge pull request #539 from coheigea/AMQ-7490
aa8900c is described below

commit aa8900ca70e6f9422490c1a03627400375d3ff83
Author: Colm O hEigeartaigh <coheigea@apache.org>
AuthorDate: Fri May 22 09:56:59 2020 +0100

    AMQ-7490 - Fix JMX regression
---
 .../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 1f3c2f0..4bd68b0 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);
     }
 


Mime
View raw message