Attaching actions to rollbacks in Spring

We have a problem in a Spring Boot app where some files are created during a database transaction and they need to be deleted if the transaction rolls back. This was my solution... When a file is created, we publish an event containing the filename: We have another component which listens for the event: As … Continue reading Attaching actions to rollbacks in Spring