Announcement Announcement Module
Collapse
No announcement yet.
Declarative Transactions to Rollback on Any Exception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Declarative Transactions to Rollback on Any Exception

    Is there a way to have the Spring Declarative transaction management to rollback on all Runtime Exceptions (which it does by default) and all Checked Exceptions (which it does not by default) without having to define -CheckedException on every method declaration?

  • #2
    Patrick,

    Did you try to simply specify "-Exception"? You have to specify it multiple times, but at least it is explicit what you are doing. Or are you looking for a global setting? I haven't seen that anywhere.

    Comment


    • #3
      Thomas,

      I had thought of that, but we were hoping to not have to remember to set anything at the method level. Just set it in the abstract bean and have all our transaction proxies use that bean as their parent.

      Maybe a global setting would be good here?

      Thanks,
      Patrick

      Comment

      Working...
      X