If you cannot split your processing into smaller chunks of operation .... then
probably the other way to try out is to set the TIMEOUT (or the equivalent ) in
your web server settings. Besides that i would like to know myself what we can
do.
I got the same problem and we had a mix of the above mentioned solution and it
worked perfectly well for me.

Sean Snyders wrote:

> Hi,
>
> The following situation exists:
>
> I have a servlet that answers a request from a browser (the browser sending
> a request eg:
>         http://host:8080/servlet/myServlet.class?QueryField=some_param_here)
> I then have ALOT of information to process and as they are processed I write
> them to the OutputStream
> of the response as such:
> first getting the outputstream:
>             PrintStream outputStream = new
> PrintStream(response.getOutputStream());
> I then write to the stream like this:
>             outputStream.println("<br> FINITO !");
> But this all occurs during processing done by my servlet.
>
> My browser, during all of this comotion, says "waiting for reply", is this
> correct, because I get a TIMEOUT error
> which terminates my servlet? Where does this error originate? Whilst I am
> writing to the outputstream the output doesn't appear
> on the browser. Only when the service method ends (when it doesn't timeout)
> it all appears on the browser. I've tried flushing the stream but to no
> avail. Why is this ?
>
> PLEASE HELP.
>
> Thanx.
>
> Sean.
>
> -: Sean Snyders
> -: mailto:[EMAIL PROTECTED]        www.cs.sun.ac.za/~snyders
> -: Computer Science Department       ph: +27-21-808-4393
> -: University of Stellenbosch               fax: +27-21-808-4416
> -: Republic of South Africa
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
begin:vcard
n:Asthana;Rishi
tel;fax:1-732-548-4009
tel;home:1-732-635-3597
tel;work:1-732-548-0087
x-mozilla-html:FALSE
org:NetCom Systems, Inc;Software Development
adr:;;116,Copperfield Ln                ;Metuchen;NJ;08840;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Systems Consultant
x-mozilla-cpt:;-3936
fn:Rishi Asthana
end:vcard

Reply via email to