リモートアクセスJMS MBean
Properties props = new Properties();
props.put(InitialContext.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
props.put(InitialContext.PROVIDER_URL, "localhost:1099");
Context ctx = new InitialContext(props);
RMIAdaptor server = (RMIAdaptor) ctx.lookup("jmx/invoker/RMIAdaptor");
ObjectName name = new ObjectName("jboss.mq.destination:name=A,service=Queue");
MBeanInfo info = server.getMBeanInfo(name);
server.invoke(name, "stop", null, null);
ObjectNameを作成し、得られたserverで実行します.