Package org.jboss.bootstrap.api.as.server

Examples of org.jboss.bootstrap.api.as.server.JBossASServer


      MBeanServerConnection adaptor = jmxc.getMBeanServerConnection();

      ServerProxyHandler handler = new ServerProxyHandler(adaptor, serverJMXName);
      Class<?>[] ifaces = {JBossASServer.class};
      ClassLoader tcl = Thread.currentThread().getContextClassLoader();
      JBossASServer server = (JBossASServer) Proxy.newProxyInstance(tcl, ifaces, handler);
      server.shutdown();

      System.out.println("Shutdown message has been posted to the server.");
      System.out.println("Server shutdown may take a while - check logfiles for completion");
      jmxc.close();
   }
View Full Code Here

TOP

Related Classes of org.jboss.bootstrap.api.as.server.JBossASServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.