> From: Caldarale, Charles R > Subject: RE: Need advice to notify StandardExecutor when a webapp is > stopped > > This is an area where some byte code modification might be appropriate > in a container environment, so that the ThreadLocal behavior could be > modified to be "ContextLocal" instead.
Thinking about this some more, byte code modification of the ThreadLocal class would not be needed. When a thread returns to the pool, any ThreadLocal objects it has could be moved to a context-specific table, using an MRU stack. When a thread is taken out of the pool to process a request for a context, it could then move the most recent set of ThreadLocal objects to itself. The context-specific table would be discarded whenever the webapp is stopped. This would allow performance acceleration for each webapp, and avoid pollution of the pool. - Chuck --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org