Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to detect a JMX lost connection

843793Nov 30 2009 — edited Jul 2 2012
I'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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2012
Added on Nov 30 2009
9 comments
5,734 views