Yang, Gang CTR US USA wrote:
Classification: UNCLASSIFIED Caveats: NONE(cut) I'm not sure about using ThreadLocal in a service framework environment for component implementation or even user-added handlers since I don't know how the framework manages the threads.
That's a valid point. To prevent possible problems if the framework switches threads, any use of ThreadLocal should be managed by the framework rather than by unmanaged direct calls from application code. Simon