tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Seaver <samsea...@northwestern.edu>
Subject Re: Servlet thread safety in Tomcat
Date Mon, 09 Feb 2004 18:35:16 GMT

>>My initial thought ( :-)  forgive me its some time since I have coded
>>servlets) was that Tomcat will create a new servlet instance that is
>>totally independed of the other,  for each request.
>>    
>>
>
>Tomcat will not create a new instance of a servlet for every request to
>that servlet.  Tomcat will create one instance on startup if the servlet
>is defined in web.xml as such (a load-on-startup tag present).  Tomcat
>may create more instances as needed to serve the request load.
>  
>
But how does Tomcat log the sessions variables PER request then? Is the 
session object independent of the servlet object, and is there one 
session object PER request?

Cheers
S


>Yoav Shapira
>
>
>
>This e-mail, including any attachments, is a confidential business communication, and
may contain information that is confidential, proprietary and/or privileged.  This e-mail
is intended only for the individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the sender.  Thank you.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
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