@Override protected ModelControllerClient startConfiguration() { final String[] cmds = {"--server-config=" + config, "--admin-only"}; final String[] systemPackages = {"org.jboss.logmanager"}; standaloneServer = EmbeddedProcessFactory.createStandaloneServer( getServer().getBaseDir().toString(), null, systemPackages, cmds); try { standaloneServer.start(); } catch (EmbeddedProcessStartException e) { throw new RuntimeException(e); } return standaloneServer.getModelControllerClient(); }
@Override protected void stopConfiguration() { writeConfiguration(); standaloneServer.stop(); standaloneServer = null; }