Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Information Provided
-
3.14.4
-
None
-
None
-
Unknown
Description
I have a route which is .transacted(). I use MDCUnitOfWork, whose beforeProcess and afterProcess methods are called in CamelInternalProcessor - but only if the route is not transacted.
With my limited camel internals knowledge, I do not understand why beforeProcess and afterProcess are called only for non-transacted routes. In my typical scenario, MDC variables work well until I get to a transacted route, then at the last processor before the transacted route the afterProcess (which clears MDC variables) is called, and beforeProcess is never called, so there are no MDC variables inside the transacted route.