geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hogst...@apache.org
Subject svn commit: r355040 - /geronimo/trunk/modules/jmx-remoting/src/java/org/apache/geronimo/jmxremoting/JMXConnector.java
Date Thu, 08 Dec 2005 08:46:36 GMT
Author: hogstrom
Date: Thu Dec  8 00:46:34 2005
New Revision: 355040

URL: http://svn.apache.org/viewcvs?rev=355040&view=rev
Log:
Caught ugly Exception at shutdown and silently accepted it as it is expected

Modified:
    geronimo/trunk/modules/jmx-remoting/src/java/org/apache/geronimo/jmxremoting/JMXConnector.java

Modified: geronimo/trunk/modules/jmx-remoting/src/java/org/apache/geronimo/jmxremoting/JMXConnector.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/jmx-remoting/src/java/org/apache/geronimo/jmxremoting/JMXConnector.java?rev=355040&r1=355039&r2=355040&view=diff
==============================================================================
--- geronimo/trunk/modules/jmx-remoting/src/java/org/apache/geronimo/jmxremoting/JMXConnector.java
(original)
+++ geronimo/trunk/modules/jmx-remoting/src/java/org/apache/geronimo/jmxremoting/JMXConnector.java
Thu Dec  8 00:46:34 2005
@@ -124,9 +124,18 @@
     }
 
     public void doStop() throws Exception {
-        server.stop();
-        server = null;
-        log.debug("Stopped JMXConnector " + url);
+        try {
+        	  server.stop();
+        } catch (java.io.IOException e) {
+        	  // java.io.IOException is expected.
+        } catch (Exception e) {
+        	  // Otherwise, something bad happened.  Rethrow the exception.
+        	  throw e;
+        }
+        finally {
+          server = null;
+          log.debug("Stopped JMXConnector " + url);
+        }
     }
 
     public void doFail() {



Mime
View raw message