I have a built-in grizzly jersey app that initializes as follows:
HttpServer httpServer = GrizzlyServerFactory.createHttpServer(BASE_URI, rc);
What I want to achieve is to allow current requests to finish on shutdown, but not to allow new requests. I could not find a way to achieve this with the publicly available HttpServer methods or even with private methods and such (although this is not good, a solution by accessing private things through reflection is also good)
Does anyone know how this is possible?
source share