André Ricardo da Silva Souza created CAMEL-7568:
---------------------------------------------------
Summary: 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
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)