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 da...@apache.org on 2006/07/20 15:08:15 UTC
svn commit: r423925 - in /webservices/sandesha/trunk/c:
include/sandesha2/sandesha2_msg_processor.h
src/handlers/sandesha2_in_handler.c src/msgprocessors/msg_processor_creator.c
Author: damitha
Date: Thu Jul 20 06:08:14 2006
New Revision: 423925
URL: http://svn.apache.org/viewvc?rev=423925&view=rev
Log:
Now in handler is compiling
Modified:
webservices/sandesha/trunk/c/include/sandesha2/sandesha2_msg_processor.h
webservices/sandesha/trunk/c/src/handlers/sandesha2_in_handler.c
webservices/sandesha/trunk/c/src/msgprocessors/msg_processor_creator.c
Modified: webservices/sandesha/trunk/c/include/sandesha2/sandesha2_msg_processor.h
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/include/sandesha2/sandesha2_msg_processor.h?rev=423925&r1=423924&r2=423925&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/include/sandesha2/sandesha2_msg_processor.h (original)
+++ webservices/sandesha/trunk/c/include/sandesha2/sandesha2_msg_processor.h Thu Jul 20 06:08:14 2006
@@ -72,6 +72,15 @@
sandesha2_msg_processor_ops_t *ops;
};
+/**
+ * @brief Application Message Processor Creator struct impl
+ * Sandesha2 App Msg Processor Creator
+ */
+sandesha2_msg_processor_t *AXIS2_CALL
+sandesha2_msg_processor_create_msg_processor(
+ const axis2_env_t *env,
+ sandesha2_msg_ctx_t *rm_msg_ctx);
+
#define SANDESHA2_MSG_PROCESSOR_FREE(proc, env) \
((proc)->ops->free (proc, env))
#define SANDESHA2_MSG_PROCESSOR_PROCESS_IN_MSG(proc, env, rm_msg_ctx) \
Modified: webservices/sandesha/trunk/c/src/handlers/sandesha2_in_handler.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/handlers/sandesha2_in_handler.c?rev=423925&r1=423924&r2=423925&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/handlers/sandesha2_in_handler.c (original)
+++ webservices/sandesha/trunk/c/src/handlers/sandesha2_in_handler.c Thu Jul 20 06:08:14 2006
@@ -72,9 +72,7 @@
const axis2_env_t *env,
struct axis2_msg_ctx *msg_ctx)
{
- axis2_property_t *property = NULL;
axis2_property_t *temp_prop = NULL;
- axis2_status_t status = AXIS2_FAILURE;
axis2_conf_ctx_t *conf_ctx = NULL;
axis2_conf_t *conf = NULL;
axis2_ctx_t *ctx = NULL;
@@ -185,7 +183,7 @@
* TODO Validate the message
* SANDESHA2_MSG_VALIDATOR_VALIDATE(env, rm_msg_ctx, storage_mgr);
*/
- msg_processor = sandesha2_msg_processor_get_msg_processor(env, rm_msg_ctx);
+ msg_processor = sandesha2_msg_processor_create_msg_processor(env, rm_msg_ctx);
if(msg_processor)
SANDESHA2_MSG_PROCESSOR_PROCESS_IN_MSG(msg_processor, env, rm_msg_ctx);
if(AXIS2_SUCCESS != AXIS2_ERROR_GET_STATUS_CODE(env->error))
@@ -200,7 +198,8 @@
prop = axis2_property_create(env);
AXIS2_PROPERTY_SET_SCOPE(prop, env, AXIS2_SCOPE_APPLICATION);
AXIS2_PROPERTY_SET_VALUE(prop, env, SANDESHA2_VALUE_FALSE);
- AXIS2_CTX_SET_PROPERTY(temp_ctx, env, SANDESHA2_WITHIN_TRANSACTION, prop);
+ AXIS2_CTX_SET_PROPERTY(temp_ctx, env, SANDESHA2_WITHIN_TRANSACTION,
+ prop, AXIS2_FALSE);
rolled_back = AXIS2_TRUE;
}
if(AXIS2_TRUE != within_transaction && AXIS2_TRUE != rolled_back)
@@ -211,7 +210,8 @@
prop = axis2_property_create(env);
AXIS2_PROPERTY_SET_SCOPE(prop, env, AXIS2_SCOPE_APPLICATION);
AXIS2_PROPERTY_SET_VALUE(prop, env, SANDESHA2_VALUE_FALSE);
- AXIS2_CTX_SET_PROPERTY(temp_ctx, env, SANDESHA2_WITHIN_TRANSACTION, prop);
+ AXIS2_CTX_SET_PROPERTY(temp_ctx, env, SANDESHA2_WITHIN_TRANSACTION,
+ prop, AXIS2_FALSE);
}
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "Error in processing the message");
AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_CANNOT_PROCESS_MSG,
@@ -226,7 +226,8 @@
prop = axis2_property_create(env);
AXIS2_PROPERTY_SET_SCOPE(prop, env, AXIS2_SCOPE_APPLICATION);
AXIS2_PROPERTY_SET_VALUE(prop, env, SANDESHA2_VALUE_FALSE);
- AXIS2_CTX_SET_PROPERTY(temp_ctx, env, SANDESHA2_WITHIN_TRANSACTION, prop);
+ AXIS2_CTX_SET_PROPERTY(temp_ctx, env, SANDESHA2_WITHIN_TRANSACTION,
+ prop, AXIS2_FALSE);
}
AXIS2_LOG_INFO(env->log, "Exit: sandesha2_in_handler::invoke");
@@ -238,6 +239,7 @@
struct axis2_handler *handler,
const axis2_env_t *env)
{
- return axis2_qname_creaet(env, SANDESHA2_IN_HANDLER_NAME, NULL, NULL);
+ return (axis2_qname_t *) axis2_qname_create(env, SANDESHA2_IN_HANDLER_NAME,
+ NULL, NULL);
}
Modified: webservices/sandesha/trunk/c/src/msgprocessors/msg_processor_creator.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/msgprocessors/msg_processor_creator.c?rev=423925&r1=423924&r2=423925&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/msgprocessors/msg_processor_creator.c (original)
+++ webservices/sandesha/trunk/c/src/msgprocessors/msg_processor_creator.c Thu Jul 20 06:08:14 2006
@@ -37,7 +37,7 @@
*/
sandesha2_msg_processor_t *AXIS2_CALL
sandesha2_msg_processor_create_msg_processor(
- axis2_env_t *env,
+ const axis2_env_t *env,
sandesha2_msg_ctx_t *rm_msg_ctx)
{
int msg_type = -1;
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org