On Thu, 27 Mar 2003, Shapira, Yoav wrote:
> Date: Thu, 27 Mar 2003 12:10:40 -0500 > From: "Shapira, Yoav" <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: RE: Threads in Servlet2.3 container > > > Howdy, > > >Actually, that's yes and yes. A single thread is used to process a > single > >HTTP request (including all the filters on the filter chain, the > ultimate > >call to the servlet, and any recursive calls via a RequestDispatcher). > > Really?!? This is a guarantee of the spec, not a tomcat implementation > particularity? > > If it is a spec-mandated thing, I stand correct, thanks for the valuable > info, and sorry for giving out a wrong response to the original > poster... > Quotes are from Servlet 2.4 PFD2, but it's the same in 2.3: * [2.3.3.3 Thread Safety] Implementations of the request and response object are not guaranteed to be thread safe. This means that they should only be used within the scope of the request handling thread. * [8.2 Using a Request Dispatcher] The container provider must ensure that the dispatch of the request to a target servlet occurs in the same thread of the same JVM as the original request. > Yoav Shapira > Millennium ChemInformatics > Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
