Hello,
We assumed that when there is a runtime exception on an event handler, a rollback is triggered. But now the event handler continues. The rollback configuration is ANY_THROWABLE. But when we implement a work around with a try catch and CurrentUnitOfWork.get ().rollback(), the rollback is triggered. We are using tracking processing.
Do we have to add an extra configuration to activate the rollback on a throwable?
@EventHandler
public void on(VacatureGewijzigd event) {
try {
...
} catch(Throwable e) {
CurrentUnitOfWork.get().rollback();
}
}
`
`