wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session and context objects" Watch "Session and context objects" New topic
Author

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?
TIA
- Chris
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
You should not count on the session and context methods being thread-safe as there is no requirement for that in the API.
Bill
 
wood burning stoves
 
subject: Session and context objects
 
Similar Threads
Difference between getAttribute and getParameter
Doubt on implicit objects
open sessions vs cuurent session
Stateless Session Bean setSessionContext operations
Size limit of the Request