I'm new to all this, but is this (HttpServlet not being thread safe) a
Tomcat problem, or just a general JSP problem, which will show up no matter
what server I use (weblogic, for instance)?

-----Original Message-----
From: Luba Powell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 8:20 AM
To: [EMAIL PROTECTED]
Subject: Re: MultiThreadModel-Problem?


HttpServlet is not thread safe.  Synchronize your code where needed

----- Original Message ----- 
From: "Sebastian Schulz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2001 11:08 AM
Subject: MultiThreadModel-Problem?


> hi,
> 
> i use a servlet in MultiThreadModel-mode (default).
> when 2 users at the same time makes the same request
> to the servlet (a operation that needs a bit) it seams, that
> only the request of the user who was perhaps a millisecond
> earlier is responded correct, the other seams to be ignored.
> 
> (i think, this is perhaps a concurency-problem, but i do not use
> static variables and could not find an error)
> 
> the second question is:  data-container like HashMap or HashSet
> are considered to be not Thread-save. Can i use such containers
> in a MultiThreadModel-Servlet or must i use only slower structures
> like Vector?
> 
> your help is realy needed, many thanks
> in advance!
> 
> basti
> 

Reply via email to