Re: xml-pdf servlet output timeout

2002-05-08 Thread J.Pietschmann
bonsigno wrote:
Hi,
I had writen a servlet who generates a dynamic PDF document with a long
elaboration time (some minutes).
In the mean time the client browser that had made the servlet request,
shows the errors "HTTP 500 - Internal server error" or "Unable to find
the server or DNS error".
The servlet elaboration continue without exception and produces the
document ... but the result never arrives to the client.
Someone knows more about this problem?
There are some HTTP tricks to keep the browser from
getting a timeout. Multipart MIME may work, spawn
the PDF generator off as Java thread, push some
HTML saying "Please Wait" and a space every odd second
(flush the stream), and push the PDF as the second part.
(maybe this helps:
 http://lists.w3.org/Archives/Public/www-talk/2000NovDec/0064.html
)
Another possibility is to use automatic refresh, again
spawn the PDF generator, push a "Please Wait" HTML, if
the PDF is requested again check whether there is the
generator thread, if it's still working push the HTML
again, otherwise send the PDF.
J.Pietschmann



RE: xml-pdf servlet output timeout

2002-05-08 Thread Wright Neiland (app1nlw)
Perhaps not a direct solution - but for large documents I try to kick off
the process asyncronously with JMS.  I have also found- due to unreliable
browser rendering of pdf documents that storing the generated document as a
file in a temporary directory works well.  Because there is an asyncronous
process, we have to poll to determine when the document is complete.

Hope this is helpful
Neil Wright

-Original Message-
From: bonsigno [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 08, 2002 3:18 AM
To: [EMAIL PROTECTED]
Subject: xml-pdf servlet output timeout
Importance: High


Hi,
I had writen a servlet who generates a dynamic PDF document with a long
elaboration time (some minutes).
In the mean time the client browser that had made the servlet request,
shows the errors "HTTP 500 - Internal server error" or "Unable to find
the server or DNS error".
The servlet elaboration continue without exception and produces the
document ... but the result never arrives to the client.
Someone knows more about this problem?
Thanks
Roberto Bonsignori


xml-pdf servlet output timeout

2002-05-08 Thread bonsigno
Hi,
I had writen a servlet who generates a dynamic PDF document with a long
elaboration time (some minutes).
In the mean time the client browser that had made the servlet request,
shows the errors "HTTP 500 - Internal server error" or "Unable to find
the server or DNS error".
The servlet elaboration continue without exception and produces the
document ... but the result never arrives to the client.
Someone knows more about this problem?
Thanks
Roberto Bonsignori