You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by ma...@apache.org on 2007/11/14 09:58:15 UTC
svn commit: r594802 -
/webservices/sandesha/trunk/c/src/util/sandesha2_utils.c
Author: manjula
Date: Wed Nov 14 00:58:14 2007
New Revision: 594802
URL: http://svn.apache.org/viewvc?rev=594802&view=rev
Log:
Setting the storage manager to axis2_ctx only when new one
created.
Modified:
webservices/sandesha/trunk/c/src/util/sandesha2_utils.c
Modified: webservices/sandesha/trunk/c/src/util/sandesha2_utils.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/sandesha2_utils.c?rev=594802&r1=594801&r2=594802&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/util/sandesha2_utils.c (original)
+++ webservices/sandesha/trunk/c/src/util/sandesha2_utils.c Wed Nov 14 00:58:14 2007
@@ -548,13 +548,19 @@
property = axis2_ctx_get_property(ctx, env, SANDESHA2_PERMANENT_STORAGE_MGR);
if(property)
+ {
storage_mgr = axutil_property_get_value(property, env);
+ }
+
else
+ {
storage_mgr = sandesha2_permanent_storage_mgr_create(env, conf_ctx);
- property = axutil_property_create_with_args(env, AXIS2_SCOPE_APPLICATION,
- AXIS2_FALSE, 0, storage_mgr);
- axis2_ctx_set_property(ctx, env, SANDESHA2_PERMANENT_STORAGE_MGR,
- property);
+ property = axutil_property_create_with_args(env, AXIS2_SCOPE_APPLICATION,
+ AXIS2_FALSE, 0, storage_mgr);
+ axis2_ctx_set_property(ctx, env, SANDESHA2_PERMANENT_STORAGE_MGR,
+ property);
+ }
+
return storage_mgr;
}
@@ -1432,7 +1438,7 @@
axis2_msg_info_headers_set_action(msg_info_headers, env, action);
op_ctx = axis2_msg_ctx_get_op_ctx(in_msg_ctx, env);
- axis2_msg_ctx_set_op_ctx(new_msg_ctx, env, op_ctx);
+ axis2_msg_ctx_set_op_ctx(new_msg_ctx, env, op_ctx);
svc_ctx = axis2_msg_ctx_get_svc_ctx(in_msg_ctx, env);
axis2_msg_ctx_set_svc_ctx(new_msg_ctx, env, svc_ctx);
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org