servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r384868 - /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AdminCommandsService.java
Date Fri, 10 Mar 2006 17:38:32 GMT
Author: gnodet
Date: Fri Mar 10 09:38:29 2006
New Revision: 384868

URL: http://svn.apache.org/viewcvs?rev=384868&view=rev
Log:
Fix SM-347: Exception thrown during command invocation contains nested XMLs result strings

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AdminCommandsService.java

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AdminCommandsService.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AdminCommandsService.java?rev=384868&r1=384867&r2=384868&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AdminCommandsService.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AdminCommandsService.java
Fri Mar 10 09:38:29 2006
@@ -182,13 +182,7 @@
      * @return
      */
     public String undeployServiceAssembly(String name) throws Exception {
-        try {
-            container.getDeploymentService().undeploy(name);
-            return success("undeployServiceAssembly", name);
-
-        } catch (Exception e) {
-            throw new RuntimeException(failure("undeployServiceAssembly", name, e));
-        }
+        return container.getDeploymentService().undeploy(name);
     }
 
     /**
@@ -198,13 +192,7 @@
      * @return
      */
     public String startServiceAssembly(String name) throws Exception {
-        try {
-            container.getDeploymentService().start(name);
-            return success("startServiceAssembly", name);
-
-        } catch (Exception e) {
-            throw new RuntimeException(failure("startServiceAssembly", name, e));
-        }
+        return container.getDeploymentService().start(name);
     }
 
     /**
@@ -214,13 +202,7 @@
      * @return
      */
     public String stopServiceAssembly(String name) throws Exception {
-        try {
-            container.getDeploymentService().stop(name);
-            return success("stopServiceAssembly", name);
-
-        } catch (Exception e) {
-            throw new RuntimeException(failure("stopServiceAssembly", name, e));
-        }
+        return container.getDeploymentService().stop(name);
     }
 
     /**
@@ -230,13 +212,7 @@
      * @return
      */
     public String shutdownServiceAssembly(String name) throws Exception {
-        try {
-            container.getDeploymentService().shutDown(name);
-            return success("shutdownServiceAssembly", name);
-
-        } catch (Exception e) {
-            throw new RuntimeException(failure("shutdownServiceAssembly", name, e));
-        }
+        return container.getDeploymentService().shutDown(name);
     }
     
    



Mime
View raw message