Announcement Announcement Module
Collapse
No announcement yet.
Exclude Logging From Rollback Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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.

    Comment


    • #3
      How do I create separate transaction for my logging? Do I create another data source, DAO, sqlmap config, transaction manager, etc . ?

      Comment


      • #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

        Comment

        Working...
        X