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 2008/09/12 16:58:00 UTC

svn commit: r694703 - in /webservices/axis2/trunk/c: include/axis2_const.h src/core/clientapi/options.c

Author: damitha
Date: Fri Sep 12 07:57:59 2008
New Revision: 694703

URL: http://svn.apache.org/viewvc?rev=694703&view=rev
Log:
Adding new context property for use separate listener

Modified:
    webservices/axis2/trunk/c/include/axis2_const.h
    webservices/axis2/trunk/c/src/core/clientapi/options.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=694703&r1=694702&r2=694703&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_const.h (original)
+++ webservices/axis2/trunk/c/include/axis2_const.h Fri Sep 12 07:57:59 2008
@@ -211,6 +211,8 @@
 
 #define AXIS2_MODULE_ADDRESSING "addressing"
 
+#define AXIS2_USE_SEPARATE_LISTENER "use_listener"
+
 #define AXIS2_USER_NAME "userName"
 #define AXIS2_PASSWORD "password"
 

Modified: webservices/axis2/trunk/c/src/core/clientapi/options.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/clientapi/options.c?rev=694703&r1=694702&r2=694703&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/options.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/options.c Fri Sep 12 07:57:59 2008
@@ -659,7 +659,23 @@
     const axutil_env_t * env,
     const axis2_bool_t use_separate_listener)
 {
+    axutil_property_t *property = NULL;
+
     options->use_separate_listener = use_separate_listener;
+
+    if (use_separate_listener)
+    {
+        property = axutil_property_create(env);
+        axutil_property_set_value(property, env, axutil_strdup(env, AXIS2_VALUE_TRUE));
+        axis2_options_set_property(options, env, AXIS2_USE_SEPARATE_LISTENER, property);
+    }
+    else
+    {
+        property = axutil_property_create(env);
+        axutil_property_set_value(property, env, axutil_strdup(env, AXIS2_VALUE_FALSE));
+        axis2_options_set_property(options, env, AXIS2_USE_SEPARATE_LISTENER, property);
+    }
+    
     return AXIS2_SUCCESS;
 }