• Post Reply Bookmark Topic Watch Topic
  • New Topic

how we can make a session object thread safe?

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how we can make a session object thread safe?


------------------------
Session attributes
The HttpSession object is accessible to an individual session i.e. an individual user. Although this may be thought as being thread safe, there is nothing to stop the same user for accessing the same resource at the same time. Therefore this attribute is not thread safe.
----------
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about synchronizing access to the resource in question.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!