Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding an event handler for the transaction rollback #2015

Open
alexpoletaev opened this issue Nov 14, 2024 · 0 comments
Open

Consider adding an event handler for the transaction rollback #2015

alexpoletaev opened this issue Nov 14, 2024 · 0 comments

Comments

@alexpoletaev
Copy link

Please consider adding a handler for the transaction rollback here, which will consume an exception and reactive session. This will allow to register observers for that event like it's possible for the before and after commit events. I'm using Quarkus with the hibernate reactive and I didn't find a way how to execute a peace of code (sending a Kafka message in my case) in case of transaction rollback for all the database entities. Also it would be great if those observers can be separated by the database operation events, something like INSERT_ROLLBACK, UPDATE_ROLLBACK, DELETE_ROLLBACK etc. Please let me know if I missed something and this is already implemented. Thanks in advance.

@DavideD DavideD added problem A limitation or source of discomfort and removed problem A limitation or source of discomfort labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants