Annotation Type CancelOnFailure


  • @InterceptorBinding
    @Retention(RUNTIME)
    @Target({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:
    [email protected] 25/04/2013