summaryrefslogtreecommitdiffstats
path: root/src/core/description
diff options
context:
space:
mode:
authorGravatar nandika2010-02-18 15:19:57 +0000
committerGravatar nandika2010-02-18 15:19:57 +0000
commit3e5d0295ea38c1d31b9acabb2ff45f492d40cafc (patch)
treeb364c9db0815fcb62b1aa11de90b143e26513b17 /src/core/description
parent6edfaeecefcf7727e8b32af23e067dc39465accd (diff)
downloadaxis2c-3e5d0295ea38c1d31b9acabb2ff45f492d40cafc.tar.gz
axis2c-3e5d0295ea38c1d31b9acabb2ff45f492d40cafc.tar.bz2
disengage_module method updated for svc
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@911436 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/core/description')
-rw-r--r--src/core/description/svc.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/core/description/svc.c b/src/core/description/svc.c
index 72f4597..84f7f35 100644
--- a/src/core/description/svc.c
+++ b/src/core/description/svc.c
@@ -1039,6 +1039,31 @@ axis2_svc_disengage_module(
return AXIS2_FAILURE;
}
status = axis2_phase_resolver_disengage_module_from_svc(phase_resolver, env, svc, module_desc);
+ if(status == AXIS2_SUCCESS)
+ {
+ /** Remove this module from the engaged modules list */
+ axutil_qname_t *mod_qname = NULL;
+ int i = 0, size = 0;
+
+ mod_qname = axis2_module_desc_get_qname(module_desc, env);
+
+ size = axutil_array_list_size(svc->engaged_module_list, env);
+ for(i = 0; i < size; i++)
+ {
+ const axutil_qname_t *module_qname_l = NULL;
+ axis2_module_desc_t *module_desc_l = NULL;
+
+ module_desc_l = (axis2_module_desc_t *)axutil_array_list_get(svc->engaged_module_list, env,
+ i);
+ module_qname_l = axis2_module_desc_get_qname(module_desc_l, env);
+
+ if(axutil_qname_equals(mod_qname, env, module_qname_l))
+ {
+ axutil_array_list_remove(svc->engaged_module_list, env, i);
+ break;
+ }
+ }
+ }
axis2_phase_resolver_free(phase_resolver, env);