This content has been marked as final.
Show 3 replies
-
1. Re: Shutdown JBOSS Server Using JMX API
dimitris May 31, 2005 7:58 AM (in response to bhanupratap)something like:
import org.jboss.mx.util.MBeanServerLocator; ... MBeanServer server = MBeanServerLocator.locateJBoss(); ObjectName target = new ObjectName("jboss.system:type=Server"); server.invoke(target, "shutdown", new Object[], new String[]);
-
2. Re: Shutdown JBOSS Server Using JMX API
bhanupratap Jun 1, 2005 1:01 AM (in response to bhanupratap)Thanks . Its working..
-
3. Re: Shutdown JBOSS Server Using JMX API
bhanupratap Jun 1, 2005 6:29 AM (in response to bhanupratap)I am having two instances of JBOSS Namely instance1,instance2 running on my machine How to shutdown a particular instance. Could anyone Plz help out. Using the above code, the default instance is getting shutdown. But i need to shutdown either of the instances based on the user request.
Thanks in advance