-
Mar 24th, 2010, 10:46 AM
#1
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
#2
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
#3
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
#4
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules