I was using the sample code (plus some annotation extensions - see
above) and started getting java.util.ConcurrentModificationException
thrown by the postFlush method when it's iterating the set of updates.
So I've added synchonisation around the Set usage - e.g.
Set<AuditLogRecord> sUpdates = Collections.synchronizedSet(updates);
synchronized(sUpdates) {
sUpdates.add(logRecord);
}
Hopefully this will help someone else!
Robin |