According to two questions in the "WGS-PREX-J080B: ePractice Exam Sun[TM] Certified Web Component Developer J2EE" (Objective 7), the Response object is not thread-safe. I fail to understand why (isn't this a parameter and thus a "local" variable?). Would someone care to explain? Is the Request object thread-safe, if so why the difference? Thanks Louis
It is a local variable, but check out what the Servlet specification has to say about these objects:
SRV.2.3.3.3 Thread Safety
Implementations of the request and response objects are not guaranteed to be thread safe. This means that they should only be used within the scope of the request handling thread.
References to the request and response objects must not be given to objects executing in other threads as the resulting behavior may be nondeterministic.