Re: Axis2 - Inbuilt thread support
Martin Gainty wrote: Good Morning Samisa- i did'nt see any documentation for either TCPServer or axis2_tcp_server_start i do see this configuration for TCPServer in axis2.xml displayed as > I see this connection between TCPServer and axis2_tcp_server* functions? public static synchronized void start() throws Exception { if (count == 0) { // start tcp server File file = new File(TestingUtils.prefixBaseDirectory(Constants.TESTING_REPOSITORY)); System.out.println(file.getAbsoluteFile()); if (!file.exists()) { throw new Exception("Repository directory does not exist"); } ConfigurationContext er = ConfigurationContextFactory.createConfigurationContextFromFileSystem(file .getAbsolutePath(), file .getAbsolutePath() + "/conf/axis2.xml"); try { Thread.sleep(1000); } catch (InterruptedException e1) { throw new AxisFault("Thread interuptted", e1); } receiver = new TCPServer(UtilServer.TESTING_PORT, er); receiver.start(); } count++; } so the only configuration i see happens in axis2.xml and is 3rd param to TCPServer I have'nt seen any ability to configure number of worker threads either declaratively or programatically? AFAIK, this is not configurable. You might have to change the TCPServer code. Samisa... assuming they are related I havent seen any documentation on AxisWorker? Advise on locating any of threads or documentation on how they are configured is appreciated thanks, Martin Gainty GMT+5 (e)[EMAIL PROTECTED] __ 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: Mon, 6 Oct 2008 17:28:40 +0530 > From: [EMAIL PROTECTED] > To: axis-user@ws.apache.org > Subject: Re: Axis2 - Inbuilt thread support > > Martin Gainty wrote: > > 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! > > Have you looked into the TCP transport docs? > http://ws.apache.org/axis2/1_4_1/tcp-transport.html > > Samisa... > > > 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 hav
RE: Axis2 - Inbuilt thread support
Good Morning Samisa- i did'nt see any documentation for either TCPServer or axis2_tcp_server_start i do see this configuration for TCPServer in axis2.xml displayed as > I see this connection between TCPServer and axis2_tcp_server* functions? public static synchronized void start() throws Exception { if (count == 0) { // start tcp server File file = new File(TestingUtils.prefixBaseDirectory(Constants.TESTING_REPOSITORY)); System.out.println(file.getAbsoluteFile()); if (!file.exists()) { throw new Exception("Repository directory does not exist"); } ConfigurationContext er = ConfigurationContextFactory.createConfigurationContextFromFileSystem(file .getAbsolutePath(), file .getAbsolutePath() + "/conf/axis2.xml"); try { Thread.sleep(1000); } catch (InterruptedException e1) { throw new AxisFault("Thread interuptted", e1); } receiver = new TCPServer(UtilServer.TESTING_PORT, er); receiver.start(); } count++; } so the only configuration i see happens in axis2.xml and is 3rd param to TCPServer I have'nt seen any ability to configure number of worker threads either declaratively or programatically? assuming they are related I havent seen any documentation on AxisWorker? Advise on locating any of threads or documentation on how they are configured is appreciated thanks, Martin Gainty GMT+5 (e)[EMAIL PROTECTED] __ 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: Mon, 6 Oct 2008 17:28:40 +0530 > From: [EMAIL PROTECTED] > To: axis-user@ws.apache.org > Subject: Re: Axis2 - Inbuilt thread support > > Martin Gainty wrote: > > 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! > > Have you looked into the TCP transport docs? > http://ws.apache.org/axis2/1_4_1/tcp-transport.html > > Samisa... > > > 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 p
Re: Axis2 - Inbuilt thread support
Martin Gainty wrote: 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! Have you looked into the TCP transport docs? http://ws.apache.org/axis2/1_4_1/tcp-transport.html Samisa... 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. See Now <http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/> -- Samisa Abeysinghe http://people.apache.org/~samisa/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis2 - Inbuilt thread support
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/
Re: Axis2 - Inbuilt thread support
ConfigurationContext#getThreadPool(). Andreas On 5 oct. 08, at 15:58, Deepal jayasinghe wrote: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]