there are several examples doin this on this blog, which seems to me as a well written how to or guide (however you want to call it :) grizzling or grizzbook for hunters)
Ransford Segu-Baffoe
paksegu_at_yahoo.com
http://www.noqmx.com/
https://serenade.dev.java.net/
--- On Wed, 4/1/09, Edward Chou <Edward.Chou_at_Sun.COM> wrote:
From: Edward Chou <Edward.Chou_at_Sun.COM>
Subject: add second ServletAdapter to GrizzlyWebServer after webserver.start()
To: users_at_grizzly.dev.java.net
Date: Wednesday, April 1, 2009, 7:43 PM
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