Class TransactionalInterceptorRequired

  • All Implemented Interfaces:
    Serializable

    @Priority(200)
    @Interceptor
    public class TransactionalInterceptorRequired
    extends TransactionalInterceptorBase
    Transactional annotation Interceptor class for Required transaction type, ie jakarta.transaction.Transactional.TxType.REQUIRED If called outside a transaction context, a new JTA transaction will begin, the managed bean method execution will then continue inside this transaction context, and the transaction will be committed. If called inside a transaction context, the managed bean method execution will then continue inside this transaction context.
    Author:
    Paul Parkinson
    See Also:
    Serialized Form
    • Constructor Detail

      • TransactionalInterceptorRequired

        public TransactionalInterceptorRequired()
    • Method Detail

      • transactional

        public Object transactional​(jakarta.interceptor.InvocationContext ctx)
                             throws Exception
        Throws:
        Exception