开发者

Suspending Web Request (Thread)

开发者 https://www.devze.com 2023-01-30 02:05 出处:网络
I want to suspend the web request handler thread andAnother thread pool will handle the request concurrently and send response to client. Or thread pool send notification to the web request handler th

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消