Alex Rivera | Logout

Good pattern or framework for adding auditing to an existing app?

Asked 2008-09-16T02:02:35.467
11

I have an existing J2EE enterprise application to which I need to add auditing, i.e. be able to record CRUD operations on several important domain types (Employee, AdministratorRights, etc.).

The application has a standard n-tier architecture:

  • Web interface
  • Business operations encapsulated within a mixture of stateless session beans and transactional POJOs (using Spring)
  • persistence is a mixture of direct JDBC (from within the business layer) and EJB 2.x BMP entity beans (I know, I know)

My question is: are there any standard patterns or (better still) frameworks/libraries specifically for adding auditing as a cross-cutting concern? I know AOP can be used to implement cross-cutting concerns in general; I want to know if there's something specifically aimed at auditing.

Edit
Report

1 Answer

0

Try an Aspect Oriented programming framework.

From Wikipedia "Aspect-oriented programming (AOP) is a programming paradigm that increases modularity by allowing the separation of cross-cutting concerns".

answered 2008-09-16T02:04:03.453

Your Answer