Hi,

I have written a custom REST compensation framework in spring which records a REST call along with compensation call info (using annotations and AOP) which will be executed if there is a exception in the down the line.

E.g
rest call 1 (sucess) -> rest call 2 (failed) -> rest call 1 compensation.

The application also uses JTA transactions. Can I extend JTA transaction manager to call the compensation framework logic if the JTA transaction is rollback.