geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r808349 - /geronimo/server/branches/2.2/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MonitoringPortlet.java
Date Thu, 27 Aug 2009 10:10:27 GMT
Author: xuhaihong
Date: Thu Aug 27 10:10:27 2009
New Revision: 808349

URL: http://svn.apache.org/viewvc?rev=808349&view=rev
Log:
GERONIMO-4816 Handle the scenario of deleting an invalid server

Modified:
    geronimo/server/branches/2.2/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MonitoringPortlet.java

Modified: geronimo/server/branches/2.2/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MonitoringPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MonitoringPortlet.java?rev=808349&r1=808348&r2=808349&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MonitoringPortlet.java
(original)
+++ geronimo/server/branches/2.2/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MonitoringPortlet.java
Thu Aug 27 10:10:27 2009
@@ -687,13 +687,16 @@
                     return;
                 }
                 // check whether the snapshot query is enabled, if does, close it first
-                MRCConnector mrc = new MRCConnector(node);
-                if (mrc.isSnapshotRunning() == 1) {
-                    if (mrc.stopSnapshotThread()) {
-                        addInfoMessage(actionRequest, getLocalizedString(actionRequest, "mconsole.infoMsg06",
server_id));
-                    } else {
-                        addErrorMessage(actionRequest, getLocalizedString(actionRequest,
"mconsole.errorMsg09", server_id));
+                try {
+                    MRCConnector mrc = new MRCConnector(node);
+                    if (mrc.isSnapshotRunning() == 1) {
+                        if (mrc.stopSnapshotThread()) {
+                            addInfoMessage(actionRequest, getLocalizedString(actionRequest,
"mconsole.infoMsg06", server_id));
+                        } else {
+                            addErrorMessage(actionRequest, getLocalizedString(actionRequest,
"mconsole.errorMsg09", server_id));
+                        }
                     }
+                } catch (Exception e) {
                 }
                 entityManager.remove(node);
             } finally {



Mime
View raw message