views:

223

answers:

0

Hi. I have a j2ee web application running on Spring framework. It uses Log4j for logging and Spring's AOP and Spring's transaction manager (e.g DataSourceTransactionManager) for roll-bakc during exceptions. I believe the best way to put log errors or exceptions is on the catch. So assuming I put the logging here and rethrow or bubble-up he exception for AOP to execute roll-back, how do I exclude my logging on database from the roll-back