[ 
https://issues.apache.org/jira/browse/CAMEL-7568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen reassigned CAMEL-7568:
----------------------------------

    Assignee: Claus Ibsen

> OnComplete does not  work on transactioned route after rollback
> ---------------------------------------------------------------
>
>                 Key: CAMEL-7568
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7568
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.13.1
>            Reporter: André Ricardo da Silva Souza
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.14.0
>
>
> Example:
> {code:title=Route Sample|borderStyle=solid}
> this.from("servlet:///test").routeId("CamelTestRoute") 
>    .onCompletion() 
>       .bean(this.logCompletionRoute) 
>    .end() 
>    .onException(Exception.class) 
>       .log(LoggingLevel.ERROR, this.log, "Error on processing message. 
> Sending Rollback command!") 
>       .log(LoggingLevel.ERROR, this.log, "${exception.stacktrace}") 
>       .rollback()
>       .handled(true) 
>    .end() 
>    .transacted(RouteTransactionConfiguration.PROPAGATION_REQUIRED) 
>    .process(new Processor() { 
>                 @Override 
>                 public void process(Exchange exchange) throws Exception { 
>                     throw new Exception(); 
>                 }}); 
> {code}
> In this sample, the OnCompletion bean never is executed. But, if I remove the 
> "rollback()" call, it is executed properly.
> thanks,



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to