Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tomcat/Axis: new thread for each web service call?

Thread Tools

Tomcat/Axis: new thread for each web service call?

Digital Puer
Posts: n/a
I am using Tomcat and Axis to write a web service that will
invoke Runtime.exec() to launch an application at the server
side. The web service is run with "Application" scope.

Question: when a web service method is called, is it run
in a new thread? If so, are the threads managed from a
known-sized thread pool by Tomcat or Axis?

My problem is that when my web service method MyExec() calls
Runtime.exec() and subsequently Process.waitFor(), it must
block for the result. I want to know if MyExec() will be
launched in its own thread by Tomcat or if I need to launch
a new Thread myself. I obviously would like Tomcat to continue
responding to web service calls while MyExec() runs and blocks.

Thank you for any help.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does timer in Web Service Global.asax block my Web Service from processing web-site requests? Leo Violette ASP .Net Web Services 0 04-17-2009 12:39 AM
multithreading with each thread in a separate class instance vs. in aC-style kernel thread calls in C++ ssylee C++ 2 01-28-2008 09:39 AM
Does IIS thread each web service request? =?Utf-8?B?Sm9l?= ASP .Net 2 07-17-2006 08:35 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
a new worker process(aspnet_wp.exe) for each web service request ... CG ASP .Net 3 02-09-2005 12:04 AM