Spring Transaction Manager
Posted
by cedric
on Stack Overflow
See other posts from Stack Overflow
or by cedric
Published on 2010-03-23T15:46:16Z
Indexed on
2010/03/23
15:53 UTC
Read the original article
Hit count: 334
Hi. I have a j2ee application running on spring framework. I am implementing a transaction manager with AOP. It works fine.
When an exception occurs in my method it is detected by my AOP configuration and rolls back the changes in the DB. But the problem is the code where you expect the error should not be surrounded with try-catch. When I suround it with try-catch it won't roll-back. But I need to do some stuffs like logging whenever there are errors and the only place I can think of placing it is in the catch block.
© Stack Overflow or respective owner