users@grizzly.java.net

Where is GrizzlyWebServer ?

From: Nicolas VEYSSIERE <ixo_at_kawaiyume.net>
Date: Thu, 20 Nov 2014 21:51:12 +0100

Hello,

it is now a long time no see ! I was using GrizzlyWebServer in previous version of Grizzly, but I can’t find it anymore (v 2.3.14).

Is renamed or deleted ?


I was trying to achieve something like this :

GrizzlyWebServer grizzly = new GrizzlyWebServer();
ServletAdapter sa;
String servletClassName = "com.vaadin.terminal.gwt.server.ApplicationServlet";
try {
    Servlet s = (Servlet)Class.forName(servletClassName).newInstance();
    sa = new ServletAdapter();
    sa.setServletInstance(s);
} catch (...) {
}
sa.setRootFolder("WebContent");
sa.addContextParameter("productionMode", "false");
sa.setContextPath("/MyApp");
sa.setProperty(ServletAdapter.LOAD_ON_STARTUP, "1");
sa.addInitParameter("application", "my.domain.MyApplication");
grizzly.addGrizzlyAdapter(sa, new String[]{"/MyApp","/VAADIN"});




Thanks for help...