Here you can find the source of close(JMXConnector connector)
private static void close(JMXConnector connector)
//package com.java2s; //License from project: Open Source License import javax.management.remote.JMXConnector; import java.io.IOException; public class Main { private static void close(JMXConnector connector) { if (connector != null) { try { connector.close();// w w w. j a v a 2s .c o m } catch (IOException e) { e.printStackTrace(); } } } }