P
Phil Jarvis
I have a soap server running on Tomcat.
The client makes a request, and the server may have to spend some
nontrivial time formulating the response.
WHile the server formulates the response,
the client is killed by the user and the connection is (theoretically)
killed.
Is there a way to detect on the server side that the connection has been
dropped BEFORE any attempt to issue a response to the socket?
I want to get the servlet to cease and desist computation if the
socket is dropped, and if possible I'd like to detect it before my JDBC
transaction completes so I can abort a corresponding database transaction.
Right now I don't get any error until long after my transactions are
closed and the servlet has completed the response for transmission.
Thanks for any tips.
I'm using standard HttpServlet and JAXMservlet stuff on Tomcat 4.
(Does tomcat 5 automatically send some kind of interrupt to my servlet
when the connection is dropped? Maybe all I need to do is upgrade
servlet containers?)
Please post responses here, my email setup eats them.
The client makes a request, and the server may have to spend some
nontrivial time formulating the response.
WHile the server formulates the response,
the client is killed by the user and the connection is (theoretically)
killed.
Is there a way to detect on the server side that the connection has been
dropped BEFORE any attempt to issue a response to the socket?
I want to get the servlet to cease and desist computation if the
socket is dropped, and if possible I'd like to detect it before my JDBC
transaction completes so I can abort a corresponding database transaction.
Right now I don't get any error until long after my transactions are
closed and the servlet has completed the response for transmission.
Thanks for any tips.
I'm using standard HttpServlet and JAXMservlet stuff on Tomcat 4.
(Does tomcat 5 automatically send some kind of interrupt to my servlet
when the connection is dropped? Maybe all I need to do is upgrade
servlet containers?)
Please post responses here, my email setup eats them.