S2Container再起動
テストで再起動したい場面はある!?
private static int port_ = 8080; private static String baseUrl_ = "http://localhost:" + port_ + "/s2jsf-example/"; protected void restart() throws Exception { URL url = getUrl("s2servlet?command=restart"); WebClient webClient = new WebClient(); } protected URL getUrl(String path) throws MalformedURLException { return new URL(baseUrl_ + path); }