If it is a long long query you might want to allow the user to kick it off and get sent an email with a link to the results when they are ready. Just an idea.
Graham.
Robert Parker wrote:
Not sure if this will work, but it may be worth a look...
Could you setup a multi-part response such that say every 15 secs you send
back a progress indicator. If you did this and the client has
'disconnected', perhaps you will get an exception indicating that the socket
is broken implying to kill the big query....
-----Original Message-----
From: Steve Parkinson [mailto:stevepnscp@;yahoo.com]
Sent: Sunday, 27 October 2002 7:25AM
To: [EMAIL PROTECTED]
Subject: Notification when HTTP client aborted connection?
We have some servlets which may potentially create
long-lived database searches, data mining, etc. If the
user is willing to wait for the servlet to complete,
everything is good, but if they press 'stop', visit
another page, or otherwise close the connection to the
webserver, we want to get notified. This way, we can
abort the database connection, so the database isn't
being used to run unnecessary searches.
First, is there a facility in the API for a servlet to
set up a listener, so the servlets gets notified when
the servlet container has lost the connection?
Secondly, is anyone aware of any webserver
implementation which triggers the notification?
It seems that this would be an obvious kind of
feature, but doesn't seme to be implemented. I also
asked on the Sun Java Servlet forum, but no one seems
to have any idea.
Thanks
Steve
__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>
------------------------------------------------------------------------
MEMBERS EQUITY PTY LTD ABN 56 070 887 679
This email and any attachments are confidential. If you are not the
intended recipient, you must not disclose, distribute, copy or use the
information contained in this e-mail or any attachments. If you have
received this email in error, please tell us immediately by return email
and delete this e-mail and any attachments.
This message should not be removed.
------------------------------------------------------------------------
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
-- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
