ravi D shankar wrote:
To achieve asynchronization, is there a way to store the request, response objects after the service method executes so that the queue process can process these when their time comes and also servlet thread is released?
As you start reading and working, the Request and Response are for a request and they are short lived. Once the request processing is completed, they are ceased.
If at all you intend to say the data inside the request/response objects for the further use of ThreadPoolExecutor, you can very well save it in (files, database etc.,)
You can even do it it with a bigger scoped objects like Session, Application (ServletContext). But again, in this case they would have to be accessed via next set of request-response pairs