Force Shutingdown WLS Using JMX

import java.io.IOException; import java.net.MalformedURLException; import java.util.Hashtable; import javax.management.MBeanServerConnection; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; import javax.management.remote.JMXConnector; import javax.management.remote.JMXConnectorFactory; import javax.management.remote.JMXServiceURL; import weblogic.management.runtime.*; import javax.naming.Context; import java.lang.*; public class ShutdownServerUsingJMX { private static MBeanServerConnection connection; private static JMXConnector connector; private static final ObjectName service; static { try { service=new ObjectName(“com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean”); } catch (MalformedObjectNameException

Continue reading »