How to detect a JMX lost connection
843793Nov 30 2009 — edited Jul 2 2012I've got a situation where a client is talking to a server via a JMX connection.The server will be performing a time consuming, resource hungry transaction that may take and so may take a long to return. During this time it's possible that the client is terminated and/or the connection is dropped.
Is there a way for the JVM on the client to detect that the port has closed? I'd like to use this callback to terminate the server transaction and free up resources/CPU for other transactions.
Cheers.