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.