Announcement Announcement Module
Collapse
No announcement yet.
Invoking Rollback on a transaction Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Invoking Rollback on a transaction

    I'm using the TransactionInterceptor for transaction management.

    However, our framework doesn't use exceptions for errors. How does one rollback the current transaction programmatically.

    Dino

  • #2
    http://www.springframework.org/docs/api/org/springframework/transaction/interceptor/TransactionAspectSupport.html#currentTransactionSt atus()

    The TransactionStatus object features a setRollbackOnly() method.

    Comment

    Working...
    X