2 Replies Latest reply on Aug 5, 2010 8:56 AM by 843798

    JMX Event Notifer - Re-register after connection is lost and back up.


      I have a client that registers with JMX for notifications.
      Whenever that JMX Notifications Emitting application is restarted I get an exception
      01/08/2010 16:28:04 com.sun.jmx.remote.ws.client.JMXWSManStub fetchNotifications
      WARNING: Exception java.io.IOException: java.net.ConnectException: Connection refused: connectoccured during fetch. Closing connection
      And stop getting notifications (Obviously).

      I would like to be able to catch this exception so I can start a thread that will poll on the target application until it's back up and then I would like to re-register with the events.

      My question is - How can I handle this exception myself? Currently the JMX Platform catches it and I'm not sure If I can take over handling it myself.

      Thanks for the help