Suspending Web Request (Thread)
I want to suspend the web request handler thread and Another thread pool will handle the request concurrently and send response to client. Or thread pool send notification to the web request handler thread and this thread will send the response to client?
is it possible with Web Logic or another server like Tomcat?
Thanks Tru开发者_开发技巧stin
You may be interested in how Jetty does something like this with a form of continutations -- testing has shown it can scale very well to many comet/ajax connections. However, this is Jetty-specific and may not be implementable using other stacks -- at least until the Servlet 3.0 spec is implemented (it introduces "suspendable" request).
YMMV. I don't actually touch Java web-stacks these days (thank goodness :-). Happy coding.
精彩评论