Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: MR-156
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Claus Ibsen
Reporter: Claus Ibsen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FUSE Mediation Router

Add a rollback() DSL to force a rollback for transacted exchanges

Created: 20/Mar/09 07:24 AM   Updated: 23/Mar/09 07:01 AM
Component/s: None
Affects Version/s: 1.5.4.0-fuse
Fix Version/s: 2.2.0-fuse-01-00

External Issue URL: https://issues.apache.org/activemq/browse/CAMEL-1478


 Description  « Hide
When you want to rollback a TX with Spring TX you need to throw a runtime exception.

It would be nicer with a rollback DSL that can set a marker on the exchange and then the Spring TX interceptor can notice this and force a rollback.

As the rollkback() should also work under non TX conditiions it should throw a runtime exception for non TX exchanges.
Or we should just add a new RollbackExchangeException that will be thrown.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Claus Ibsen added a comment - 20/Mar/09 07:25 AM
Idea about rollback came from DEV-1421

Claus Ibsen added a comment - 23/Mar/09 07:01 AM
Implemented this feature in Camel 2.0