Detecting Client Disconnects in Web Services
问题 I'm using the Apache CXF Web Services stack. When a client times out or disconnects from the server before the operation is complete, the server keeps running the operation until it is complete. I would like to have the server detect when the client disconnects and handle that accordingly. Is there a way to detect when a client disconnects using Apache CXF? What about using other Java web-services stacks? 回答1: I am not familiar with Apache CXF , but the following should be applicable to any