@InterceptorBinding
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
public @interface CancelOnFailure
When applied at method level, states that the compensation-based transaction must cancel, if a RuntimeException
(or subclass of) is thrown from that particular method.
When applied at class level, states that the compensation-based transaction must cancel, if a RuntimeException
(or subclass of) is thrown from any business method of the class.
- Author:
- paul.robinson@redhat.com 25/04/2013