Are we talking about a *session* timeout or a *request* timeout? You
original message implied the former, since you were trying to correct it
with session.setMaxInactiveInterval(), but if it's a request timeout
that's not going to have any effect.
It sounds like the PDF generation is taking too long, causing the
browser to timeout the request because it gives up on getting a
response. In that case, the way to fix it is to return a 'generating
PDF...' response immediately and do the generation in the background.
See the execAndWait interceptor for one way to approach that:
http://struts.apache.org/2.0.11.1/index.html
L.
Simon Sew wrote:
The request timeout occurs when it is still generating the pdf. When it
finished, the file will be exported to the jsp.
Laurie Harper <[EMAIL PROTECTED]> wrote: Al Sutton wrote:
You may find that your app server, the clients browser, or any proxy
in-between may timeout irrespective of what you do in your webapp.
If the timeout occurs during the PDF generation, before the response
begins being streamed back, maybe. But as long as there is response data
being transmitted, no timeout should occur at the connection level. A
session timeout is an app-server function, anyhow; clients and proxies
know nothing about the session.
Simon, is the timeout occuring during the request for the PDF, while it
is being generated and before the action begins transmitting it? Or is
the PDF downloaded successfully with the next request failing because
the session timed out during the download?
L.
If the file takes so long to generate is there any reason why your not
pre-generating it, caching it and serving it as a static file?
Al.
----- Original Message ----- From: "Simon Sew"
To:
Sent: Thursday, May 22, 2008 7:32 AM
Subject: Request/session timeout when exporting very large files
Hi,
I'm having this request/session timeout problem.
My page have a link to generate and export pdf file. The problem is
sometimes the generated file is very huge (100MB++) and it takes quite
some time to export it (30 to 90 minutes). How do I prevent it from
timeout when it is exporting at that time?
I tried session.setMaxInactiveInterval() but it's not working.
Thx.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]