This content has been marked as final.
Show 2 replies
-
1. Re: Handle exceptions in compensate
gytis Aug 23, 2016 6:03 AM (in response to manuel_uberti)Emanuel,
I've just tried adding RuntimeException to the compensation handler of the travel agent example (quickstart/CancelBooking.java at 5.3.4.Final · jbosstm/quickstart · GitHub) and it was caught as expected here narayana/ParticipantImpl.java at 5.3.4.Final · jbosstm/narayana · GitHub.
The JTA transaction is of course rolled back as a result. Compensation handler is not invoked repeatedly.
-
2. Re: Handle exceptions in compensate
manuel_uberti Aug 23, 2016 8:45 AM (in response to gytis)Thank you, that's what I needed to know.