You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by Mark Struberg <st...@yahoo.de> on 2012/06/04 21:05:18 UTC

uncontrolled ThradLocals in Extensions are bad bad bad

because they are really hard to cleanup. 


And also they break future compatibility for asynchronous servlet request support.

We shall go for @RequestScoped instead. 


Please remember that @RequestScoped in the CDI Spec is NOT bound to a servlet request but ALSO exists in all other EE calls, even remotes!

There is really usually NO NEED for ThreadLocals in Extensions.


LieGrue,
strub