-
Suggestion
-
Resolution: Done
-
None
Currently event handlers that interact with transactions and Hibernate entities might run into some issues:
- the transaction might not be committed until all handling for the event is done
- in some cases, the entire transaction might be rolled back, even after the event handler completed successfully
- some events contain references to Hibernate entities, which is troublesome as events might be shared between threads, and these entities might be attached to a closed session
- is related to
-
KRAK-58 You do not have permission to view this issue
(2 mentioned in)
Events published during a database transaction are now delayed until that transaction commits. If the transaction rolls back, these are never published.
Event handlers no longer contain Hibernate entities, nor share a session or transaction with the event publishers.