MDC routeId value is lost after calling a direct route from a camel transacted route
Issue
-
We are experiencing issues with the
camel.routeIdvalue is disappearing from the MDC context after calling a direct route.
It seems that this occurs when the direct component is used within a transacted route. -
Attached is a test case demonstrating the issue. The case is loosely based on
org.apache.camel.processor.MDCTest.
The issue goes away if either:direct:bis replaced withdirect-vm:b.transacted()is removed from the parent route definition
-
In our current routes it appears that converting all direct components into
direct-vmcomponents will probably be a workable solution, though we have yet to test this.
Environment
- Red Hat JBoss Fuse
- 6.3.x
- 6.2.1
- Apache Camel
- camel-core
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.