This is an example of "sharing a common exception handler between threads" (in this case, the catch-exception exception strategy):
<catch-exception-strategy name="myGlobalCatchStrategy"> <set-payload value="Hey something happened! : #[exception.getSummaryMessage()]" /> </catch-exception-strategy> <configuration defaultExceptionStrategy-ref="myGlobalCatchStrategy" /> <flow name="global-catch-example"> <inbound-endpoint address="vm://entry-point.in" exchange-pattern="request-response" /> <test:component throwException="true" /> </flow>
source share