axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r379337 - /webservices/axis2/trunk/c/modules/core/engine/engine.c
Date Tue, 21 Feb 2006 04:49:02 GMT
Author: samisa
Date: Mon Feb 20 20:49:00 2006
New Revision: 379337

URL: http://svn.apache.org/viewcvs?rev=379337&view=rev
Log:
Modified code to return status based on phase invocation status

Modified:
    webservices/axis2/trunk/c/modules/core/engine/engine.c

Modified: webservices/axis2/trunk/c/modules/core/engine/engine.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/engine/engine.c?rev=379337&r1=379336&r2=379337&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/engine.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/engine.c Mon Feb 20 20:49:00 2006
@@ -292,7 +292,11 @@
     } 
     else 
     {
-        axis2_engine_invoke_phases(engine, env, pre_calculated_phases, msg_ctx);
+        axis2_status_t status = axis2_engine_invoke_phases(engine, env, pre_calculated_phases,
msg_ctx);
+
+        if (status != AXIS2_SUCCESS)
+            return status;
+            
         if (AXIS2_MSG_CTX_IS_PAUSED(msg_ctx, env))
         {
             return AXIS2_SUCCESS;
@@ -658,6 +662,7 @@
 {
     int i = 0;
     int count = 0;
+    axis2_status_t status = AXIS2_FAILURE;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_PARAM_CHECK((*env)->error, phases, AXIS2_FAILURE);
     AXIS2_PARAM_CHECK((*env)->error, msg_ctx, AXIS2_FAILURE);    
@@ -667,7 +672,9 @@
     {
         axis2_phase_t *phase = (axis2_phase_t *) AXIS2_ARRAY_LIST_GET(phases, env, i);
         AXIS2_LOG_DEBUG((*env)->log, AXIS2_LOG_SI, "Invoking phase %s", AXIS2_PHASE_GET_NAME(phase,
env));
-        AXIS2_PHASE_INVOKE(phase, env, msg_ctx);
+        status = AXIS2_PHASE_INVOKE(phase, env, msg_ctx);
+        if (status != AXIS2_SUCCESS)
+            return status;
     }
     return AXIS2_SUCCESS;
 }



Mime
View raw message