You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2007/11/14 07:09:51 UTC

svn commit: r594782 - in /webservices/axis2/trunk/c: include/axis2_const.h src/core/deployment/conf_init.c

Author: damitha
Date: Tue Nov 13 22:09:50 2007
New Revision: 594782

URL: http://svn.apache.org/viewvc?rev=594782&view=rev
Log:
Please refer to Jira AXIS2C-763

Modified:
    webservices/axis2/trunk/c/include/axis2_const.h
    webservices/axis2/trunk/c/src/core/deployment/conf_init.c

Modified: webservices/axis2/trunk/c/include/axis2_const.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_const.h?rev=594782&r1=594781&r2=594782&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_const.h (original)
+++ webservices/axis2/trunk/c/include/axis2_const.h Tue Nov 13 22:09:50 2007
@@ -350,6 +350,7 @@
 
 #define AXIS2_RESPONSE_SOAP_ENVELOPE "Axis2ResponseEnvelope"
 #define AXIS2_HANDLER_ALREADY_VISITED "handler_already_visited"
+#define AXIS2_IS_SVR_SIDE "axis2_is_svr_side"
 
 #ifdef __cplusplus
 }

Modified: webservices/axis2/trunk/c/src/core/deployment/conf_init.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/deployment/conf_init.c?rev=594782&r1=594781&r2=594782&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/deployment/conf_init.c (original)
+++ webservices/axis2/trunk/c/src/core/deployment/conf_init.c Tue Nov 13 22:09:50 2007
@@ -46,6 +46,8 @@
     axis2_dep_engine_t *dep_engine = NULL;
     axis2_conf_t *conf = NULL;
     axis2_phase_resolver_t *phase_resolver = NULL;
+    axutil_property_t *property = NULL;
+    axis2_ctx_t *conf_ctx_base = NULL;
 
     AXIS2_ENV_CHECK(env, NULL);
 
@@ -53,7 +55,7 @@
     if (!dep_engine)
     {
         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
-                        "dep engine create with repos name failed, dep_engine value is NULL");
+            "dep engine create with repos name failed, dep_engine value is NULL");
         return NULL;
     }
 
@@ -61,7 +63,7 @@
     if (!conf)
     {
         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
-                        "dep engine load failed. conf value is NULL");
+            "dep engine load failed. conf value is NULL");
         return NULL;
     }
     axis2_conf_set_dep_engine(conf, env, dep_engine);
@@ -70,7 +72,8 @@
     if (!phase_resolver)
     {
         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
-                        "phase resolver create with config failed. phase resolver value is NULL");
+            "phase resolver create with config failed. phase resolver value "\
+            "is NULL");
         return NULL;
     }
 
@@ -78,10 +81,13 @@
     if (!conf_ctx)
     {
         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
-                        "conf ctx creation failed. conf_ctx value is NULL");
+            "conf ctx creation failed. conf_ctx value is NULL");
         return NULL;
     }
 
+    conf_ctx_base = axis2_conf_ctx_get_base(conf_ctx, env);
+    property = axutil_property_create_with_args(env, 2, 0, 0, AXIS2_VALUE_TRUE);
+    axis2_ctx_set_property(conf_ctx_base, env, AXIS2_IS_SVR_SIDE, property);
     axis2_phase_resolver_build_chains(phase_resolver, env);
 
     axis2_init_modules(env, conf_ctx);
@@ -102,6 +108,8 @@
     axis2_dep_engine_t *dep_engine = NULL;
     axis2_conf_t *conf = NULL;
     axis2_phase_resolver_t *phase_resolver = NULL;
+    axutil_property_t *property = NULL;
+    axis2_ctx_t *conf_ctx_base = NULL;
 
     AXIS2_ENV_CHECK(env, NULL);
 
@@ -137,7 +145,9 @@
                         "conf ctx creation failed. conf_ctx value is NULL");
         return NULL;
     }
-
+    conf_ctx_base = axis2_conf_ctx_get_base(conf_ctx, env);
+    property = axutil_property_create_with_args(env, 2, 0, 0, AXIS2_VALUE_FALSE);
+    axis2_ctx_set_property(conf_ctx_base, env, AXIS2_IS_SVR_SIDE, property);
     axis2_phase_resolver_build_chains(phase_resolver, env);
 
     axis2_init_modules(env, conf_ctx);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org