OnException blocks not shared when using a mix of Java/Spring DSLs

Solution Verified - Updated -


In a Camel context, I use a mix of routes created using the Spring DSL and a Java RouteBuilder bean. All these routes are defined in the Camel context.
The routes can be used together with any issue - using the "direct" component for example.
However, the OnException routes defined in the Spring DSL do not catch the exceptions thrown in the routes defined with the Java DSL. Also, exceptions thrown from the routes in the Spring DSL are not catched by the OnException blocks defined in the Java DSL.
Unless something special would have to be done to enable mixing both DSLs, I see no reason why this would not work.

Can you confirm this bug on your side ?


  • JBoss Fuse 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content