String hp = isa.getHostName() + ":" + isa.getPort();
String s = "service:jmx:rim://" + hp + "/jndi/rmi://" + hp + "/jmxrmi";
JMXServiceURL url = new JMXServiceURL(s);
String login = getJMXUsername(isa);
String password = getJMXPassword(isa);
Map env = new HashMap(1);
String[] creds = new String[] { login, password };
env.put(JMXConnector.CREDENTIALS, creds);
JMXConnector jmxc = JMXConnectorFactory.connect(url, env);
// jmxc = new RMIJMXConnector(host, port, login, password); /* sigh */
About Dragons and Elegance:
Politics, philosophy, software -- a notebook.
More writing by Karl:
Subscribe
Subscribe to a syndicated feed of this weblog,
brought to you by the wonders of RSS.
Flavours
There's more than one way to view this weblog; try these flavours on
for size.
Powered by
This page made possible by:
Fnord wrote