Sorry, I should have been more clear.
I am not having problem with my *session* timing out, I am having problems
with the actual connection timing out.
Here's the scenario:
1. Client does a POST, sending in an XML document (using the MSXML3 DOM on
a MS client).
2. Server parses the XML, writes some data to a database, then calls an
Oracle Report server to generate a PDF file based on the information.
3. The thread waits for the report to be completed, then it retrieves the
PDF file and stores it on a NFS volume.
4. The servlet thread then returns an XML response that contains a
reference to where the PDF file can be picked up.
5. The client then retrieves the file using a HTTP GET method, going
through the normal Apache server, which can access the NFS volume.
This architecture works fairly well, and most reports return fairly quickly
(30 - 120 sec). Also, having the client retrieve the report using an HTTP
GET gets around a bunch of issues with the Acrobat reader and IE5 (did you
know that IE+Acrobat+SSL != good_experience?)
The problem is that a long running report can make step (3) wait for more
than 5 minutes, at which time TomCat gives up and closes the connection with
an error. This means that any report that takes longer than 5 min will not
work.
I fully understand the deficiencies of this design, and while I don't like
it, it was possible to implement very quickly and in time for our next
production release. We will further address the problem in a future build
when we have a few other infrastructure pieces in place, like an "inbox"
queue so users can see when reports have completed.
So, my question remains - how can I increase this timeout from 5 min to
something longer?
Regards,
Andrew
-----Original Message-----
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 5:53 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How to increase HTTP timeout?
You should be able to set this in your web.xml file, with the
<session-timeout> tag.
Take a look at the servlet spec, at
http://java.sun.com/products/servlet/download.html .
-- Bill K.
> -----Original Message-----
> From: Andrew Jarman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 3:57 PM
> To: '[EMAIL PROTECTED]'
> Subject: How to increase HTTP timeout?
>
>
>
> I'm using Tomcat 3.2.3, and I would like to increase the HTTP
> timeout from 5
> min to something a bit longer.
>
> I have an application that sends XML to the server, which generates a
> report. Sometimes the server takes a long time to generate
> the file, which
> results in an aborted report. The XML requester on the
> client has a 1 hour
> timeout, so I have no problem there right now.
>
> I realize this isn't an ideal setup, but I need to deploy what I have
> working now, and fix the architecture later.
>
> How can I do this without hacking the source code, or is this
> the only way.
>
> BTW, I'm using the HTTP listener, not AJP12 or AJP13. I have a load
> balancer that will direct servlet requests to my TomCat
> servers, and static
> content to Apache servers.
>
> Thanks,
> Andrew
>
>
> Andrew Jarman, P.Eng, Internet Infrastructure Manager
> Exceedia, Inc.
> direct tel:780.699.5803 tel:780.413.1521 fax:780.413.0474
> "Exceedia -- Track labor, equipment and materials more
> efficiently."
> <http://www.exceedia.com/> www.exceedia.com
>