[
https://issues.apache.org/jira/browse/CAMEL-16374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17388300#comment-17388300
]
Karen Lease commented on CAMEL-16374:
-------------------------------------
Should it be possible to add any number of OnCompletion to a route, as for
global OnCompletion? This is actually the easiest solution and seems to work
correctly according to unit tests. Limiting the route to either one
OnCompletion which handles all outcomes or 2, one for normal completion and one
for failure is also possible but requires slightly more changes.
> camel-core - OnCompletion - Allow to define onFailure and onComplete on the
> same onCompletion
> ---------------------------------------------------------------------------------------------
>
> Key: CAMEL-16374
> URL: https://issues.apache.org/jira/browse/CAMEL-16374
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Major
> Fix For: 3.x
>
>
> Currently onCompletion is only 1 per route, and you can only have it in
> - success
> - failure
> - both (default)
> However you may want to it easier to separate routes for either success or
> failure.
> Today you cannot do this.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)