Could you try the following:
final JMXServiceURL url = new
JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + HOST_NAME + ":" + JMX_PORT +
"/jmxrmi");
final JMXConnector jmxConn = JMXConnectorFactory.connect(url);
final MBeanServerConnection connection =
jmxConn.getMBeanServerConnection();
Then the default domain could be got from the connection using
connection.getDefaultDomain.
--
[Message sent by forum member 'sm157516']
View Post: http://forums.java.net/node/822399