tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: Does Tomcat reuse parameterMap?
Date Tue, 09 May 2006 10:44:46 GMT
It can be reused - but it is only used in by a single request at a time. A 
single request is bound to a thread. So it is thread safe.

Now if you have listeners that is assigning the value of the map or the 
servlet request to something else. And that something else lives longer than 
the life of a request - then bad things will probably happen.

-Tim

Nikita Tovstoles wrote:

> In Tomcat, do multiple HttpServletRequest objects share same 
> parameterMap instance? If so, and access to that instance is not 
> synchronized, doesn't that mean that one request can get another 
> requests parameters?
> 
> see http://sourceforge.net/mailarchive/message.php?msg_id=12468534


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message