Here you can find the source of invokeStopOperation(ObjectName name, MBeanServer server)
stop()
method of an MBean.
public static void invokeStopOperation(ObjectName name, MBeanServer server) throws JMException
//package com.java2s; //License from project: LGPL import javax.management.MBeanServer; import javax.management.ObjectName; import javax.management.JMException; public class Main { public static final String STOP_OPERATION_NAME = "stop"; /**/*w ww . j a va2s. c om*/ * Invokes the <code>stop()</code> method of an MBean. */ public static void invokeStopOperation(ObjectName name, MBeanServer server) throws JMException { server.invoke(name, STOP_OPERATION_NAME, null, null); } }