code: private MBeanServerConnection createServerConnection(String host, int port) throws IOException {
              jmxServiceURL = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + host + ":" + port + "/jmxrmi");
              JMXConnector jmxc = JMXConnectorFactory.connect(jmxServiceURL, null);
              return jmxc.getMBeanServerConnection();            
      }
docs: ///////////////////////////////