[concurrency-interest] UnitOfWorkLocal or RequestContextLocal utilities

Unmesh joshi unmesh_joshi at hotmail.com
Wed Oct 10 01:32:46 EDT 2007


Hi All,
I am starting this discussion to move discussion about ContextLocal abstraction from the issue of memory leak.
 
In discussion about ThreadLocal and Memory Leak, David Holmes pointed out that 
 
  "When "thread" and "context" map nicely in terms of identity and lifetime,   then a ThreadLocal can be used for what is more generally a "context-local"   variable. It is when "thread" and "context" don't map nicely that problems   arise"
 
Robert Martin also blogged about this at http://blog.objectmentor.com/articles/2007/09/04/thread-local-a-convenient-abomination
 
Do you think it will help to have UnitOfWorkLocal or RequestContextLocal utilities supported by frameworks which can encapsulate usage of threads? 
 
Can it be a nice candidate for J2EE concurrency utilities?
 
Thanks
Unmesh
 
 
 
_________________________________________________________________
Get the new Windows Live Messenger!
http://get.live.com/messenger/overview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20071010/bb1cce8e/attachment.html 


More information about the Concurrency-interest mailing list