Sean:
Once I started programming longer tasks with servlets I ran into the same
issue - longer timeouts are one way, but the user only wants to wait so long
in any case. I eventually came up with a method of putting an object name,
method & parameters into a queue table in a database, then having a
server-side task (or more than one) that reads 'em back out, processes the
"job" and emails the user to let them know it's done (or logs the
notification for a later servlet to show to the user). I've bundled all this
into the Expresso open-source framework, so if you'd like an example of it,
grab a copy at our site.
The bottom line is that if I know something is going to take any more than a
few seconds, I just go ahead & queue it - it's something like the JavaSpaces
concept, but a bit more old-fashioned :-)
Mike
Javacorporate Ltd
http://www.javacorporate.com
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's
> Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On
> Behalf Of Sean
> Snyders
> Sent: Saturday, October 16, 1999 2:42 AM
> To: [EMAIL PROTECTED]
> Subject: client/servlet - timeout problem
>
>
> Hi,
>
> I'm programming quite an processing-intensive servlet and
> have a problem
> that
> it times-out on me. Can I send 'live' information back to the
> client while
> still in the
> "service" method of the servlet 'cause then I can tell the
> client I'm still
> processing
> the request, etc. and thus keeping the connection alive
> wihtout the timeout
> triggering on me.
>
> Or are the other methods, ways of solving this problem.
>
> Thanx in advance,
>
> Sean Snyders
> |-------------------------------------------------------------
> ----------|
> | Sean Snyders |
> | mailto:[EMAIL PROTECTED]
> |
> |
> |
> | 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
___________________________________________________________________________
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