tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zsolt" <>
Subject RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28
Date Fri, 02 Sep 2005 06:43:24 GMT
I have found the solution:

JkOptions     +FlushPackets


>-----Original Message-----
>From: Peter Crowther []
>Sent: Thursday, September 01, 2005 1:51 PM
>To: Tomcat Users List
>Subject: RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28
>> From: Zsolt []
>> When I start a long running servlet I want to give the user
>> some feedback
>> about the progress, thus I just print some characters to the
>> browser from
>> the servlet. It works fine when I go directly tomcat but when
>> I go through
>> apache and tomcat connector I see the characters in the
>> browser only when
>> the servlet is ready (that might take 20-30 minutes).
>> How can I force a flush via connector?
>I don't think you can.
>If the process is going to be running for that length of time, would it
>make sense to delegate the processing to some other object?  Then the
>page can return immediately, with some appropriate code that requests
>the browser to refresh the page at an appropriate interval.  During a
>refresh, you could poll the request's status and return an appropriate
>		- Peter
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message