Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-15806

Allow transaction control via well-known method return types

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.x Backlog
    • Component/s: Transaction
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      With the advent of functional libraries handling exceptions using Try types has become quite a recurring pattern, Vavr.io's Try being a prominent example.

      It would be cool if Spring's transaction management understood those well-known types and triggered rollbacks in case a failure representing value is returned from the method.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              olivergierke Oliver Drotbohm
              Last updater:
              Spring Issues Spring Issues
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                3 years, 24 weeks, 4 days ago