Skip to content

Commit

Permalink
SYMMETRICDS-589 - allow jmx http adapter to be registered with other…
Browse files Browse the repository at this point in the history
… network interfaces
  • Loading branch information
chenson42 committed Mar 6, 2012
1 parent 4c33291 commit cdcaef1
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -319,7 +319,9 @@ protected void registerHttpJmxAdaptor(int jmxPort) throws Exception {
if (!AppUtils.isSystemPropertySet(SystemConstants.JMX_HTTP_CONSOLE_LOCALHOST_ENABLED,
true)) {
mbeanServer.setAttribute(name, new Attribute("Host", "0.0.0.0"));
}
} else if (StringUtils.isNotBlank(host)) {
mbeanServer.setAttribute(name, new Attribute("Host", host));
}
mbeanServer.setAttribute(name, new Attribute("Port", new Integer(jmxPort)));
ObjectName processorName = getXslJmxAdaptorName();
mbeanServer.createMBean(XSLTProcessor.class.getName(), processorName);
Expand Down

0 comments on commit cdcaef1

Please sign in to comment.