took a quick look at the Axis distros and was only able to see tcp_receiver.c
stub function which creates  a thread ( but I cannot determine where this is 
called or referenced..? )
the call is

axis2_status_t AXIS2_CALL axis2_tcp_server_start(axis2_transport_receiver_t * 
server,const axutil_env_t *env)
{
    axis2_tcp_server_impl_t *server_impl = NULL;
    axis2_tcp_worker_t *worker = NULL;
    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);

    server_impl = AXIS2_INTF_TO_IMPL(server);

//create the Thread and assign to server_impl
    server_impl->svr_thread = axis2_tcp_svr_thread_create(env,
                                                          server_impl->port);

any pointers/links/documentation as to how axis2_tcp_server_start is invoked is 
appreciated!
Warm Regards
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Sun, 5 Oct 2008 09:58:59 -0400
> From: [EMAIL PROTECTED]
> To: axis-user@ws.apache.org
> Subject: Re: Axis2 - Inbuilt thread support
> 
> 
> > Hi All,
> > I'm working on an Axis2 Observer. Currently the process inside the
> > 'serviceUpdate' call back run synchronously by holding the main
> > thread. I want to make that process asynchronous by implementing a
> > thread model and handover the process to a worker thread.
> > Is there an inbuilt thread model in Axis2 that I can take threads from
> > a thread pool and release it back ?
> Yes , Axis2 uses inbuilt threading model, as I remember correct it is
> called "Axis2Worker" or something and the thread pool is stored in the
> configuration context. If I have a chance to dig into the code I will
> send you the exact pointer else , you may have to have a look at in the
> code.
> 
> Btw , what you have found is very good thing .I never thought about that.
> 
> -Deepal
> > Regards
> > Asanka A.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> Thank you!
> 
> 
> http://blogs.deepal.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

Reply via email to