tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <>
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.


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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message