geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r666811 - /geronimo/server/trunk/testsupport/testsupport-commands/src/main/java/org/apache/geronimo/testsupport/commands/CommandTestSupport.java
Date Wed, 11 Jun 2008 19:56:48 GMT
Author: gawor
Date: Wed Jun 11 12:56:47 2008
New Revision: 666811

URL: http://svn.apache.org/viewvc?rev=666811&view=rev
Log:
close jmx connection

Modified:
    geronimo/server/trunk/testsupport/testsupport-commands/src/main/java/org/apache/geronimo/testsupport/commands/CommandTestSupport.java

Modified: geronimo/server/trunk/testsupport/testsupport-commands/src/main/java/org/apache/geronimo/testsupport/commands/CommandTestSupport.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsupport/testsupport-commands/src/main/java/org/apache/geronimo/testsupport/commands/CommandTestSupport.java?rev=666811&r1=666810&r2=666811&view=diff
==============================================================================
--- geronimo/server/trunk/testsupport/testsupport-commands/src/main/java/org/apache/geronimo/testsupport/commands/CommandTestSupport.java
(original)
+++ geronimo/server/trunk/testsupport/testsupport-commands/src/main/java/org/apache/geronimo/testsupport/commands/CommandTestSupport.java
Wed Jun 11 12:56:47 2008
@@ -51,9 +51,14 @@
         } catch (Exception e) {
             throw new RuntimeException("Unable to setup ServerProxy", e);
         }
+        
         String home = server.getGeronimoHome();
-        if (server.getLastError() != null) {
-            throw new RuntimeException("Failed to get Geronimo home", server.getLastError());
+        Throwable exception = server.getLastError();
+        
+        server.closeConnection();
+        
+        if (exception != null) {
+            throw new RuntimeException("Failed to get Geronimo home", exception);
         } else {
             return home;
         }



Mime
View raw message