On Wed, 19 Sep 2001, Jo�o Robertson Kramer Santana wrote:
> I would like to know the default behavior of Tomcat when it receives
> lots of simultaneos request, to a servlet, from many browsers ?
>
> Does it maintains a pool with somes instances of the servlet being
> requested and associates each request (therad) with an intance of the pool ?
>
> Does it makes all those request (threads) comunicate with a single
> instance of the servlet and , if it�s the case, makes me responsible for the
> sincronization of class variables (using syncronized, SingleThreadModel) ?
Actually, if you read the spec (it's up on Sun's site), it should
answer your questions. I believe all the behavior you ask about is
spelled out in the spec -- so that will be how all compliant servlet
containers behave, not just Tomcat.
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html