Forums Register Login

Making context attribute thread safe...

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Yes you are right.
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
Thanks Pradip and Ben.
I brought this back from the farm where they grow the tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1722 times.
Similar Threads
Thread safe Session, Context and Request?
Context attributes thread safe or not?
Context Attributes are not thread safe??
request atributes are always thread-safe?
FileChannel and thread safety
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:34:35.