Here you can find the source of getMbeanServerConnection(final JMXConnector jmxConnector)
public static MBeanServerConnection getMbeanServerConnection(final JMXConnector jmxConnector)
//package com.java2s; //License from project: Apache License import java.io.IOException; import javax.management.MBeanServerConnection; import javax.management.remote.JMXConnector; public class Main { public static MBeanServerConnection getMbeanServerConnection(final JMXConnector jmxConnector) { MBeanServerConnection mBeanServerConnection = null; if (jmxConnector != null) { try { mBeanServerConnection = jmxConnector.getMBeanServerConnection(); } catch (final IOException e) { e.printStackTrace();//from w ww. j av a2s . c o m } } return mBeanServerConnection; } }