If you are in an ejb, use @ Interceptor, otherwise use a filter...
Or aop
On 07.09.2009, at 16:32, glassfish_at_javadesktop.org wrote:
> I want to intercept ADD, DELETE and UPDATE made through the
> EntityManager so that I can write out audit records to other
> tables. What is the best way to do this?
> [Message sent by forum member 'cedricfranz' (cedricf_at_fundamo.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=363149
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>