DBZ-2847 Outbox event read-only to not generate updates
This commit is contained in:
parent
9a8cc6cbc4
commit
b297030741
@ -101,6 +101,7 @@ public void onExportedEvent(@Observes ExportedEvent<?, ?> event) {
|
||||
// Unwrap to Hibernate session and save
|
||||
Session session = entityManager.unwrap(Session.class);
|
||||
session.save(OUTBOX_ENTITY_FULLNAME, dataMap);
|
||||
session.setReadOnly(dataMap, true);
|
||||
|
||||
// Remove entity if the configuration deems doing so, leaving useful
|
||||
// for debugging
|
||||
|
Loading…
Reference in New Issue
Block a user