camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-7568) OnComplete does not work on transactioned route after rollback
Date Mon, 01 Sep 2014 11:07:21 GMT

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

Claus Ibsen resolved CAMEL-7568.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.13.3
                   2.12.5

> 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.12.5, 2.13.3, 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.3.4#6332)

Mime
View raw message