The restart is actually performed in a background thread allowing JMX a chance to respond to the client.
3031323334353637383940
public static void restart() throws Exception { WrapperManagerMBean proxy = getProxy(); if (proxy != null) { proxy.restart(); } else { throw new RuntimeException("The wrapper is not enabled."); }