tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Servlet thread safety in Tomcat
Date Mon, 09 Feb 2004 18:45:39 GMT


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

The session object is independent of the servlet object.  There is NOT
one session per request (unless the user's session happens to consist of
a single request, but that's an unusual border case).  I suggest you
read the Servlet Specification to see how sessions are defined and
managed by the container.

If you feel like looking at the relevant tomcat source, ManagerBase is a
decent place to start, here:
and look for classes in the code that use the Manager interface, call
createSession(), etc.

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:
For additional commands, e-mail:

View raw message