private MBeanServerConnection getJMXConnection() { try { if (jmxc == null) { setJMXConnectionFactory(); } return jmxc.getMBeanServerConnection(); } catch (IOException e) { throw new RuntimeException("Problem connecting to cougar JMX", e); } }
public static void main(String[] args) { CougarHelpers ch = new CougarHelpers(); ch.setJMXConnectionFactory(); }