Apache Tomecat 5.5 threading Question
Posted on 2007-03-28
I am new to Apache Tomcat and want to make sure that I understand the threading model used by relase 5.5 and 6.0.
Here is a little background on the current design that I have and the concerns that I have.
What I am attempting to do is build a dispatcher servlet that will forward the HTTP request to a servlet or a JSP page that contains the logic to complete the request. Most of the servlets will need to contact remote web resources before a response can be generated by to the user. These remote web resources may be busy or down thus causing the servlet that is handling the request to block. Since I am not that familiar with Tomcat I do not know how this will be handled. If another use sends a request into the Tomcat server will the Application Server generate another instance of the Java Dispatcher class or will the request get blocked until first request completes. Also, does the forwarding of a request to another servlet free the forwarding servlet up to process more requests.
Sorry if these questions/concerns seem basic, but since I am new to Tomcat and Servlets I want to make sure that I understand what is happening under the covers. This could affect my design and implementation. I would prefer to figure that out before I get any further in my design and implemenation.