mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3247 - DEFAULT_JMX_URL for commands
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1087251 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
628a0cde01
commit
3df7404d3e
|
@ -37,15 +37,21 @@ import javax.management.remote.JMXServiceURL;
|
|||
import sun.management.ConnectorAddressLink;
|
||||
|
||||
public abstract class AbstractJmxCommand extends AbstractCommand {
|
||||
public static final String DEFAULT_JMX_URL = "service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi";
|
||||
public static String DEFAULT_JMX_URL;
|
||||
private static String jmxUser;
|
||||
private static String jmxPassword;
|
||||
|
||||
private JMXServiceURL jmxServiceUrl;
|
||||
private String jmxUser;
|
||||
private String jmxPassword;
|
||||
private boolean jmxUseLocal;
|
||||
private JMXConnector jmxConnector;
|
||||
private MBeanServerConnection jmxConnection;
|
||||
|
||||
static {
|
||||
DEFAULT_JMX_URL = System.getProperty("activemq.jmx.url", "service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi");
|
||||
jmxUser = System.getProperty("activemq.jmx.user");
|
||||
jmxPassword = System.getProperty("activemq.jmx.password");
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current specified JMX service url.
|
||||
* @return JMX service url
|
||||
|
|
Loading…
Reference in New Issue