activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Pechorin <ivan.pecho...@gmail.com>
Subject Re: emulate synchronous response, need suggestion
Date Mon, 09 Jan 2012 06:25:00 GMT
2012/1/8 beep02 <peter.kovgan@gmail.com>:
> How can I release the request thread and in the same time keep user in wait
> without response?
> Is there some way to achieve that?

Yes, either use Servlet 3.0 container such as Tomcat 7 (just google
for AsyncContext [1] and ServletRequest.startAsync [2]).
Or (for older versions of servlet containers that don't support
Servlet 3.0) you have to rely on something like Comet - this is the
case with Tomcat 6, for example.

[1] http://docs.oracle.com/javaee/6/api/javax/servlet/AsyncContext.html
[2] http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#startAsync()

Mime
View raw message