What guarantee do you have that the asynchronous servlet is in a child thread?  
ThreadContextMap was originally an InheritableThreadLocal but had to be changed 
to a ThreadLocal due to the problems automatic inheritance causes.

Ralph

On Jul 13, 2014, at 2:56 PM, Matt Sicker <[email protected]> wrote:

> The main purpose of this class is to keep a ThreadLocal<LoggerContext> 
> variable for keeping track of LoggerContexts. Would it make sense to use 
> InheritableThreadLocal instead? This way the current thread's LoggerContext 
> is preserved for new threads in a situation such as asynchronous servlets.
> 
> -- 
> Matt Sicker <[email protected]>

Reply via email to