users@grizzly.java.net

add second ServletAdapter to GrizzlyWebServer after webserver.start()

From: Edward Chou <Edward.Chou_at_Sun.COM>
Date: Wed, 01 Apr 2009 16:43:35 -0700

Hi,

I am wondering if the following is possible:

    GrizzlyWebServer webServer = new GrizzlyWebServer(9999);
     
    ServletAdapter adapter1 = createAdapter("/atom1");

    webServer.addGrizzlyAdapter(adapter1, new String[] { "/atom1" });
    webServer.start();

    < .. do something else ... >
               
    ServletAdapter adapter2 = createAdapter("/atom2");
    webServer.addGrizzlyAdapter(adapter2, new String[] { "/atom2" });


Basically, I want to deploy a second ServletAdapter after the
GrizzlyWebServer has already been started. Currently, the second
servlet is not activated, but first servlet is. Any help is appreciated.

Edward