Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-156

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

    Details

    • Type: Feature Request
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.5.4.0-fuse
    • Fix Version/s: 2.2.0-fuse-01-00
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Activity

          Hide
          davsclaus Claus Ibsen added a comment -

          Idea about rollback came from DEV-1421

          Show
          davsclaus Claus Ibsen added a comment - Idea about rollback came from DEV-1421
          Hide
          davsclaus Claus Ibsen added a comment -

          Implemented this feature in Camel 2.0

          Show
          davsclaus Claus Ibsen added a comment - Implemented this feature in Camel 2.0

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: