• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making context attribute thread safe...

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I got from reading HFS&J is, There is only one way to make context attribute thread safe, where ever we are using context (setting and getting attrubute in context) in whole web application, do that in synchronized block. Other than this, there is no way to make sure...

Am I right?

Thanks.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are right.
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Pradip and Ben.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic