git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1087251 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2011-03-31 11:03:28 +00:00
parent 628a0cde01
commit 3df7404d3e
1 changed files with 10 additions and 4 deletions

View File

@ -37,14 +37,20 @@ 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.