Results 1 to 3 of 3

Thread: Declarative Transactions to Rollback on Any Exception

  1. #1
    Join Date
    Aug 2004
    Location
    New York, NY
    Posts
    46

    Default 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. #2
    Join Date
    Aug 2004
    Posts
    1,110

    Default

    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.
    Thomas Risberg
    SpringSource by Pivotal
    http://www.springsource.org

  3. #3
    Join Date
    Aug 2004
    Location
    New York, NY
    Posts
    46

    Default

    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

Similar Threads

  1. Programmatically rollback a declarative transaction
    By george in forum Architecture
    Replies: 10
    Last Post: Jun 15th, 2007, 01:39 PM
  2. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM
  3. Replies: 0
    Last Post: Jul 11th, 2005, 05:49 PM
  4. Replies: 2
    Last Post: Jul 7th, 2005, 04:02 PM
  5. Replies: 3
    Last Post: Nov 8th, 2004, 07:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •