tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Crowther" <Peter.Crowt...@melandra.com>
Subject RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28
Date Thu, 01 Sep 2005 11:50:40 GMT
> From: Zsolt [mailto:zkoppanylist@intland.com] 
> 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
message.

		- Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message