Just want to say thanks.
Some time ago I was involved in a discussion here about doing audit
using lifecycle listeners.
There are a whole bunch of problems with this approach and, although my
implementation worked, it was not specified that it would work.
Yesterday I needed to add an audit facility to a system and noticed the
new @Auditable annotation
(http://openjpa.apache.org/builds/2.2.0/apache-openjpa/docs/ref_guide_audit.html).
Wow.
I spent some time worrying about how to write the data to the database -
assuming I'd have to use JDBC and worrying about how to inject the data
source.
Then I noticed that the Broker passed lets me persist a new Entity
during the audit.
Thank you guys.
Jim