2 Replies Latest reply on Jul 29, 2004 12:53 PM by sys user

    Detecting client disconnect/logout

    sys user Master

      We have an application where client creates temporary queue to the server and server communicates with client using this queue. We want to do some clean-up on the server whenever client disconnects or logs out. Essentially, we want to know when the queue was broken, and based on that want to do something on server. What's the easiest way to do this?

      Instead of just logging the java.net.SocketException that occurs on client disconnect, is there a way to plug-in a listener that executes some application specific code when this occurs?

      Thanks in advance.