What is the best way to gracefully shutdown an embedded Grizzly server that processes long running synchronous requests?
I would like to tell the server to stop accepting new connections, while allowing existing requests to finish processing before finally shutting down the server.
If this functionality is not implemented, are there some API hooks that could be used to implement this in my application?
I also saw a similar unanswered question on stackoverflow:
http://stackoverflow.com/questions/12478709/is-it-possible-to-setup-grizzly-for-graceful-shutdown
Thanks,
Paul