[
https://issues.apache.org/jira/browse/CAMEL-6364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13661812#comment-13661812
]
Claus Ibsen commented on CAMEL-6364:
------------------------------------
Babak, well spotted.
The root problem is the order of transacted vs onException being used in Java
DSL.
Ideally they should always be in a fixed order. In XML DSL we can "fix" this.
But Java DSL is a bit different, and we cannot currently on the 2.x
architecture.
I logged a ticket
https://issues.apache.org/jira/browse/CAMEL-6378
And the test is fixed by moving onException before transacted.
In XML DSL we dont have this problem, as we fix it
org.apache.camel.model.RouteDefinitionHelper#prepareRoute
This problem has also been described here
http://camel.apache.org/camel-30-ideas.html
At the section _Route initialization logic for Java DSL and XML DSLs (claus)_
> Improve processors wrapping
> ---------------------------
>
> Key: CAMEL-6364
> URL: https://issues.apache.org/jira/browse/CAMEL-6364
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.11.0
> Reporter: Guillaume Nodet
> Assignee: Guillaume Nodet
> Fix For: 2.12.0
>
>
> Some processors can't easily be wrapped currently (in load balancers, finally
> clauses, try clauses, wire taps, choices).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira