axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r892793 - /webservices/axis2/trunk/c/src/core/receivers/msg_recv.c
Date Mon, 21 Dec 2009 12:16:17 GMT
Author: nandika
Date: Mon Dec 21 12:16:16 2009
New Revision: 892793

URL: http://svn.apache.org/viewvc?rev=892793&view=rev
Log: (empty)

Modified:
    webservices/axis2/trunk/c/src/core/receivers/msg_recv.c

Modified: webservices/axis2/trunk/c/src/core/receivers/msg_recv.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/receivers/msg_recv.c?rev=892793&r1=892792&r2=892793&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/receivers/msg_recv.c (original)
+++ webservices/axis2/trunk/c/src/core/receivers/msg_recv.c Mon Dec 21 12:16:16 2009
@@ -29,6 +29,10 @@
 struct axis2_msg_recv
 {
     axis2_char_t *scope;
+	/**
+	 * conf ctx is added to pass for the load_and_init_svc method
+	 */
+	axis2_conf_ctx_t *conf_ctx;
 
     void *derived;
 
@@ -135,7 +139,9 @@
 
     if(impl_class)
     {
-        AXIS2_SVC_SKELETON_INIT((axis2_svc_skeleton_t *)impl_class, env);
+		axis2_conf_t *conf = NULL;
+		conf = axis2_conf_ctx_get_conf(msg_recv->conf_ctx, env);
+        AXIS2_SVC_SKELETON_INIT_WITH_CONF((axis2_svc_skeleton_t *)impl_class, env, conf);
     }
 
     axis2_svc_set_impl_class(svc, env, impl_class);
@@ -160,7 +166,7 @@
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
-
+    msg_recv->conf_ctx = NULL;
     msg_recv->scope = axutil_strdup(env, "app*");
     msg_recv->derived = NULL;
     msg_recv->load_and_init_svc = axis2_msg_recv_load_and_init_svc_impl;
@@ -535,3 +541,20 @@
         return AXIS2_SUCCESS;
     }
 }
+AXIS2_EXPORT void AXIS2_CALL
+	axis2_msg_recv_set_conf_ctx(axis2_msg_recv_t *msg_recv,
+	const axutil_env_t *env,
+	struct axis2_conf_ctx *conf_ctx)
+{
+	msg_recv->conf_ctx = conf_ctx;
+}
+
+AXIS2_EXPORT struct axis2_conf_ctx* AXIS2_CALL
+axis2_msg_recv_get_msg_ctx(
+						   axis2_msg_recv_t *msg_recv,
+						   const axutil_env_t *env)
+{
+	if(msg_recv)
+		return msg_recv->conf_ctx;
+	return NULL;
+}



Mime
View raw message