문제

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.

올바른 솔루션이 없습니다

다른 팁

Spring generates traces for every rollback. Use an appender from your logging framework that inserts into your log table.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top