camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-663) create a TransactionErrorHandler so you can easily use a transaction & rollback on a route - with redeliveryDelay to just fail the route if it can't be processed
Date Fri, 04 Jul 2008 20:15:00 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43964#action_43964
] 

Claus Ibsen commented on CAMEL-663:
-----------------------------------

James I found a small glitch with the new error handler and the spring TransactionInterceptor.

Its the state of previous rollback that gets set to a wrong condition if your pipeline has
more than one route.
As the TransactionalClientDataSourceTest has two routes where its the 2nd route that fails
with a runtime exception then the previous rollback flag is wrong.

It goes like this

1st route = OK => previous rollback flag => false
2nd route = Fail => previous rollback flag => true

And since I have a route that is (from above, the stuff with the books) the setBody node is
always going to be OK so there is never going to be any delay in this transaction.

So we need some more clever feature to have it sleep once during a route path.

You can try the TransactionalClientDataSourceTest its rollback test that can demonstrate that
there is never a delay.

> create a TransactionErrorHandler so you can easily  use a transaction & rollback
on a route - with redeliveryDelay to just fail the route if it can't be processed
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-663
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-663
>             Project: Apache Camel
>          Issue Type: Improvement
>            Reporter: James Strachan
>            Assignee: James Strachan
>             Fix For: 1.4.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message