Problem: The JMX agent is stopped and then restarted. The JMX client detects the JMX agent process recycle and attempts to reconnect. When the JMX agent attempts to connect the 2nd time it gets an invalid MBeanServerConnection frm the JMXConnector. No exceptions are thrown until the MBeanServerConnection is used. Upon inspecting the MBeanServerConnection acquired the 2nd time I see that the 'terminated' member is 'true'. I do see this line in the doc for getMBeanServerConnection...
"For a given JMXConnector, two successful calls to this method will usually return the same MBeanServerConnection object, though this is not required."
It appears as if the 2nd pass through the JMX client code returns the same MBeanServerConnection that was acquired the first time through but that MBeanServerConnection is no longer valid.
Is it possible to force JMXConnector to not reuse the MBeanServerConnection?