Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 99829 invoked from network); 4 Apr 2006 07:03:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2006 07:03:53 -0000 Received: (qmail 64239 invoked by uid 500); 4 Apr 2006 07:03:53 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 64027 invoked by uid 500); 4 Apr 2006 07:03:52 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 64016 invoked by uid 500); 4 Apr 2006 07:03:52 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 64013 invoked by uid 99); 4 Apr 2006 07:03:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 00:03:52 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 04 Apr 2006 00:03:51 -0700 Received: (qmail 99681 invoked by uid 65534); 4 Apr 2006 07:03:31 -0000 Message-ID: <20060404070331.99678.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r391234 - in /webservices/axis2/trunk/c/modules/core/clientapi: call.c listener_manager.c Date: Tue, 04 Apr 2006 07:03:30 -0000 To: axis2-cvs@ws.apache.org From: samisa@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: samisa Date: Tue Apr 4 00:03:28 2006 New Revision: 391234 URL: http://svn.apache.org/viewcvs?rev=391234&view=rev Log: Fixed to use the axis2_init_thread_env function Modified: webservices/axis2/trunk/c/modules/core/clientapi/call.c webservices/axis2/trunk/c/modules/core/clientapi/listener_manager.c Modified: webservices/axis2/trunk/c/modules/core/clientapi/call.c URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/clientapi/call.c?rev=391234&r1=391233&r2=391234&view=diff ============================================================================== --- webservices/axis2/trunk/c/modules/core/clientapi/call.c (original) +++ webservices/axis2/trunk/c/modules/core/clientapi/call.c Tue Apr 4 00:03:28 2006 @@ -875,24 +875,28 @@ axis2_call_worker_func_args_t *args_list = NULL; axis2_op_ctx_t *op_ctx = NULL; axis2_msg_ctx_t *response = NULL; + axis2_env_t **thread_env = NULL; + axis2_env_t *th_env = NULL; args_list = (axis2_call_worker_func_args_t *) data; if (!args_list) return NULL; AXIS2_ENV_CHECK(args_list->env, AXIS2_FAILURE); + th_env = axis2_init_thread_env(args_list->env); + thread_env = &th_env; - op_ctx = axis2_op_ctx_create(args_list->env, args_list->op, args_list->call_impl->svc_ctx); + op_ctx = axis2_op_ctx_create(thread_env, args_list->op, args_list->call_impl->svc_ctx); if (!op_ctx) return NULL; - AXIS2_MSG_CTX_SET_OP_CTX(args_list->msg_ctx, args_list->env, op_ctx); - AXIS2_MSG_CTX_SET_SVC_CTX(args_list->msg_ctx, args_list->env, args_list->call_impl->svc_ctx); + AXIS2_MSG_CTX_SET_OP_CTX(args_list->msg_ctx, thread_env, op_ctx); + AXIS2_MSG_CTX_SET_SVC_CTX(args_list->msg_ctx, thread_env, args_list->call_impl->svc_ctx); /* send the request and wait for reponse */ - response = axis2_two_way_send(args_list->env, args_list->msg_ctx); - args_list->call_impl->async_result = axis2_async_result_create(args_list->env, response); - AXIS2_CALLBACK_INVOKE_ON_COMPLETE(args_list->callback, args_list->env, args_list->call_impl->async_result); - AXIS2_CALLBACK_SET_COMPLETE(args_list->callback, args_list->env, AXIS2_TRUE); + response = axis2_two_way_send(thread_env, args_list->msg_ctx); + args_list->call_impl->async_result = axis2_async_result_create(thread_env, response); + AXIS2_CALLBACK_INVOKE_ON_COMPLETE(args_list->callback, thread_env, args_list->call_impl->async_result); + AXIS2_CALLBACK_SET_COMPLETE(args_list->callback, thread_env, AXIS2_TRUE); return NULL; } Modified: webservices/axis2/trunk/c/modules/core/clientapi/listener_manager.c URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/clientapi/listener_manager.c?rev=391234&r1=391233&r2=391234&view=diff ============================================================================== --- webservices/axis2/trunk/c/modules/core/clientapi/listener_manager.c (original) +++ webservices/axis2/trunk/c/modules/core/clientapi/listener_manager.c Tue Apr 4 00:03:28 2006 @@ -345,15 +345,19 @@ axis2_listener_manager_worker_func(axis2_thread_t *thd, void *data) { axis2_listener_manager_worker_func_args_t *args_list = NULL; + axis2_env_t **thread_env = NULL; + axis2_env_t *th_env = NULL; args_list = (axis2_listener_manager_worker_func_args_t *) data; if (!args_list) return NULL; AXIS2_ENV_CHECK(args_list->env, AXIS2_FAILURE); + th_env = axis2_init_thread_env(args_list->env); + thread_env = &th_env; if (args_list->listener) { - AXIS2_TRANSPORT_RECEIVER_START(args_list->listener, args_list->env); + AXIS2_TRANSPORT_RECEIVER_START(args_list->listener, thread_env); } return NULL; }