Results 1 to 4 of 4

Thread: Database Audit Trail Solution for Spring

  1. #1
    Join Date
    Aug 2004
    Location
    Hong Kong
    Posts
    18

    Default Database Audit Trail Solution for Spring

    Anyone has implemented any audit trail solution for Spring?

    Could you give me some idea or even source code?

    My wish is to have a audit trail interceptor catching the method names of the DAO and get the before and after image of the bean properties into a audit trail table.

    Or any other idea is welcome too....let's discuss!
    Beginner of Spring!

  2. #2
    Join Date
    Aug 2004
    Location
    Charleston, SC
    Posts
    4

    Default

    Hi!

    I just finished this a few minutes ago.

    This is a good start:

    http://www.onjava.com/lpt/a/4994

  3. #3
    Join Date
    Aug 2004
    Location
    Hong Kong
    Posts
    18

    Default Audit Trail AOP Solution

    I experienced problems when desiging the audit trail architecture using AOP, I hope someone can help, my design is:

    An database audit trail interceptor with AutoProxyBeanName with monitoring the DAO on CRUD methods.

    It is working fine, however, if I got a service (just like a session bean) doing a rollback, my interceptor does not know about the transaction, is there any way that my interceptor can know the service transaction so that no audit trail record is inserted when the service is rollback?!

    I hope someone can really help me...I think many applications need such audit trail feature with using JDBC but not EJB/JDO implementation.

    Thanks a lot! Any comments will be welcomed. :oops:

    Dave
    Beginner of Spring!

  4. #4
    Join Date
    Sep 2004
    Location
    Copenhagen, Denmark
    Posts
    113

    Default

    What about an AfterReturningAdvise?

    I recon it still will have the problem of not being notified about the CMT rollback.
    /Claus

Similar Threads

  1. Replies: 9
    Last Post: Apr 17th, 2007, 12:01 PM
  2. Replies: 4
    Last Post: Oct 26th, 2006, 02:20 AM
  3. Replies: 1
    Last Post: Jul 18th, 2005, 12:43 PM
  4. Audit Trail for Data Access in Spring
    By dowchen in forum Data
    Replies: 5
    Last Post: Aug 24th, 2004, 04:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •