Hello,
is there any way to schedule some action after UnitOfWork commit is done?
For example, I want to send an email only if the transaction is successful. How would I do it if a Jersey resource is wrapped with @UnitOfWork?
I could think of a workaround, where you put events in some sort of an EventBus, and if a request transaction is successful, then those events would execute. But maybe you experienced something like that and know best practices applicable to Dropwizard?
Thanks!