/[Apache-SVN]/geronimo/branches/1.1/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/CommandDistribute.java
ViewVC logotype

Diff of /geronimo/branches/1.1/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/CommandDistribute.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- geronimo/branches/1.1/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/CommandDistribute.java	2006/04/16 01:10:35	394421
+++ geronimo/branches/1.1/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/CommandDistribute.java	2006/04/16 01:24:00	394422
@@ -63,9 +63,15 @@ public class CommandDistribute extends A
                         "Cannot perform in-place deployment.");
             }
             JMXDeploymentManager jmxMgr = (JMXDeploymentManager) mgr;
-            jmxMgr.setInPlace(true);
+            try {
+                jmxMgr.setInPlace(true);
+                return mgr.distribute(tlist, module, plan);
+            } finally {
+                jmxMgr.setInPlace(false);
+            }
+        } else {
+            return mgr.distribute(tlist, module, plan);
         }
-        return mgr.distribute(tlist, module, plan);
     }
 
     protected String getAction() {

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26