Author: samisa
Date: Mon Aug 29 11:05:56 2011
New Revision: 1162733
URL: http://svn.apache.org/viewvc?rev=1162733&view=rev
Log:
Fixing AXIS2C-1552 with given patch. Fixes the service skeleton init with a conf
Modified:
axis/axis2/c/core/trunk/src/core/receivers/msg_recv.c
Modified: axis/axis2/c/core/trunk/src/core/receivers/msg_recv.c
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/core/receivers/msg_recv.c?rev=1162733&r1=1162732&r2=1162733&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/core/receivers/msg_recv.c (original)
+++ axis/axis2/c/core/trunk/src/core/receivers/msg_recv.c Mon Aug 29 11:05:56
2011
@@ -139,9 +139,17 @@ axis2_msg_recv_load_and_init_svc_impl(
if(impl_class)
{
- axis2_conf_t *conf = NULL;
- conf = axis2_conf_ctx_get_conf(msg_recv->conf_ctx, env);
- AXIS2_SVC_SKELETON_INIT((axis2_svc_skeleton_t *)impl_class, env);
+ axis2_svc_skeleton_t *skel = (axis2_svc_skeleton_t *)impl_class;
+ axis2_conf_t *conf = NULL;
+ conf = axis2_conf_ctx_get_conf(msg_recv->conf_ctx, env);
+ if (skel->ops->init)
+ {
+ AXIS2_SVC_SKELETON_INIT(skel, env);
+ }
+ if (skel->ops->init_with_conf)
+ {
+ AXIS2_SVC_SKELETON_INIT_WITH_CONF(skel, env, conf);
+ }
}
axis2_svc_set_impl_class(svc, env, impl_class);