Bug #345 (closed)
Locking mechansim is granting too many privileges
|Reported by:||jamoore||Owned by:||jamoore|
|Total Remaining Time:||n.a.|
SecuritySystem.markLocked() called by FlushEntityEventListener is giving tokens away too freely. This has to be stopped. Another (the only?) possible solution is to check if the lock is the only change that's happened in the field.
Later, it may be possible to do this asynchronously using JMS or friends. Previously, I've tried to do this with Hibernate's StatelessSession ( doesn't allow component referencing -- move LOCKED out of the components?) and a new Session without interceptor (semantics of flushing too difficult). Another option would be to do this directly with JDBC, but (1) then you have to do this directly with JDBC and (2) how to prevent overwrites by Hibernate?!