tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Einfeldt" <ralph.einfe...@uptime-isc.de>
Subject RE: tomcat output gets mixed up for different requests
Date Tue, 03 Aug 2004 09:43:28 GMT

It is normal that one servlet is used for several requests.

It's your responsability to write the method thread safe.
As long as you just use local vars inside the method
there will bo no intermixed content. As soon as you start 
to use instance or class variables you may get problems.


> -----Original Message-----
> From: Andre.Weidemann@web.de [mailto:Andre.Weidemann@web.de]
> Sent: Tuesday, August 03, 2004 11:01 AM
> To: Tomcat Users List
> Subject: Re: tomcat output gets mixed up for different requests
> 
> 
> So it seems that Tomcat does not spawn a new servlet for a 
> new request, althought my web.xml file contains:
> 

> 
> With every client calling the same Method it seems very 
> likely that the
> output is getting mixed up.
> 
> Adding a *synchronized* in front of the doGet() method, makes the
> problem disappear, but also makes the Tomcat very slow.
> 

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


Mime
View raw message