Spring generates traces for every rollback. Use an appender from your logging framework that inserts into your log table.
Transaction logging When rollback
-
13-10-2022 - |
Pergunta
I have a requirement to log the transaction to Database irrespective of commit or rollback. Incase of Transaction rollback, while all the tables gets rolled back, I want to insert a record to Transaction log table. Please suggest the best approach.
Nenhuma solução correta
Outras dicas
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow