dcsimg
Log4j MDC does not work with Pooled threads??
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Chirag_Doshi
Posted On:   Wednesday, May 7, 2003 12:43 PM

Hi
I am using the MDC to store some info that go into my log statements.
But I am using a Thread pool for my threads, MDC does not provide a method to cleanup the contents when a run for the thread is complete. NDC a similar class provides a clean method. Does someone know why such a method is not present in MDC and should I expect any issues if I try to cleanup the MDC's map using the MDC.getContext() message to get the Map as a HashTable and then use the HashTable issue a MDC.remove(key) for all keys in the HashTable.

Chirag

About | Sitemap | Contact