On Mon, Feb 7, 2011 at 10:40 AM, Simon Nash <n...@apache.org> wrote: > 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 > >
+1 Simon -- Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com