This content has been marked as final.
Show 2 replies
-
1. Re: How to stop jboss 7.1.1.Final programmatically?
fabrizio.benedetti Apr 19, 2012 3:37 AM (in response to maferji)You can use JMX API:
MBeanServerConnection mbeanServerConnection = ManagementFactory.getPlatformMBeanServer(); ObjectName mbeanName = new ObjectName("jboss.as:management-root=server"); Object[] args = {false}; String[] sigs = {"java.lang.Boolean"}; mbeanServerConnection.invoke(mbeanName, "shutdown", args, sigs);
Regards
/Fabrizio
-
2. Re: How to stop jboss 7.1.1.Final programmatically?
maferji Apr 19, 2012 10:11 AM (in response to fabrizio.benedetti)Fabrizio thank you for your help! this work fine!