-
Bug
-
Resolution: Done
-
Major
-
2.0.1.CR1
-
None
When attempting to connect, if a timeout occurs, an unchecked RuntimeException is thrown, rather than a checked IOException.
try { serverConnector = JMXConnectorFactory.newJMXConnector(serviceURL, environment); serverConnector.connect(environment); } catch (IOException ioe) { // Code to handle connection / network / failures // This never gets called if the IOFuture status is WAITING... }
The problem seems to be:
https://github.com/jbossas/remoting-jmx/blob/master/src/main/java/org/jboss/remotingjmx/RemotingConnector.java#L243