Maybe, we could introduce an interceptor to active/deactivate the ThreadContext per business method invocation. I.e. users would annotate a method whose invocation should define the thread context lifecycle (similarly to org.jboss.weld.environment.se.threading.RunnableDecorator).
|