Aug 9th, 2010, 11:23 AM
Rollback transaction for checked exception
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 at 07:28 AM.
Tags for this Thread