This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Servlets and the fly likes Session and context objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session and context objects" Watch "Session and context objects" New topic

Session and context objects

Chris Salivar
Ranch Hand

Joined: May 25, 2001
Posts: 34
Are the session and context objects thread-safe/access to them synchronized? Is this implemented by the web container or do we need to take care of it in our code?
- Chris
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13027
You should not count on the session and context methods being thread-safe as there is no requirement for that in the API.
I agree. Here's the link:
subject: Session and context objects
It's not a secret anymore!