Announcement Announcement Module
No announcement yet.
Rollback for checked exception by default Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Rollback for checked exception by default

    In our project we are migrating from WebLogic to Spring and have faced with that Spring rollbacks transactions only if there unchecked exception or error occurs. Also for marking transactional method we use annotations.

    My question is how to define that the transaction should be rollbacked if there any exception occurs and also without adding 'rollback-for' to each @Transactional annotation. Maybe it's possible to change TransactionAttributeSource and implement my own or implement TransactionAnnotationParser and use it instead of default Spring parsers.
    Last edited by WeibRabe; Aug 10th, 2010, 07:28 AM.