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

Discussion in 'Java' started by Digital Puer, Jun 21, 2005.

  1. Digital Puer

    Digital Puer Guest

    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.
    Digital Puer, Jun 21, 2005
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page