Mar 24th, 2010, 10:46 AM
Exclude Logging From Rollback
I am using AOP for my logging and rollback. How do I exclude my logging in the database from the roll back. My web application rolls back when an exception occurs. I need also to do Logging in the database but my logging gets rolled back too every exception.
Mar 24th, 2010, 12:46 PM
In general it isn't wise to write (Audit)Logging in the same transaction as the data it applies to, exactly for this reason.
Mar 24th, 2010, 08:06 PM
How do I create separate transaction for my logging? Do I create another data source, DAO, sqlmap config, transaction manager, etc . ?
Mar 25th, 2010, 02:24 AM
Just start another transaction, there are various articles describing logging and seperate transactions. So you might want to use google and do a search
Tags for this Thread