Hi there

Camel has already support for MDC logging. I also saw some discussion about 
adding static(!) MDC values when the context starts. I'd like to enhance it and 
add some application specific context information to every new exchange like. 
First I parse the message and set some headers but would also like to add the 
header to the MDC like:


MDC.put("AppMsgId", headers.get("AppMsgId"))


Is there some out-of-the-box support or do I have to create a custom bean to 
handle that?


Is there anything I have to consider like cleaning the MDC's finally or will 
Camel handle that?


Thanks a lot for your feedback

Oli

Reply via email to