bassegio14
Feb 12th, 2010, 02:29 PM
If you want to configure your logging using the parameters set in de MDC this creates problems using Spring Integration. Because if I understand correctly MDC are threadlocal. However one of the major advantages of Spring Integration is that using the Channels the different parts dealing with the treatment can occur in different threads in the pool of threads.
So do you have to set and unset the MDC in each component, if you want the use the executor framework. I know that MDC was intended for Servlets were every request is treated in a single thread, but it would be nice to do the same kind of thing in Spring Integration.
So do you have to set and unset the MDC in each component, if you want the use the executor framework. I know that MDC was intended for Servlets were every request is treated in a single thread, but it would be nice to do the same kind of thing in Spring Integration.