Class TransactionalInterceptorRequiresNew

  • All Implemented Interfaces:
    Serializable

    @Priority(200)
    @Interceptor
    public class TransactionalInterceptorRequiresNew
    extends TransactionalInterceptorBase
    Transactional annotation Interceptor class for RequiresNew transaction type, ie jakarta.transaction.Transactional.TxType.REQUIRES_NEW 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 current transaction context will be suspended, a new JTA transaction will begin, the managed bean method execution will then continue inside this transaction context, the transaction will be committed, and the previously suspended transaction will be resumed.
    Author:
    Paul Parkinson
    See Also:
    Serialized Form
    • Constructor Detail

      • TransactionalInterceptorRequiresNew

        public TransactionalInterceptorRequiresNew()
    • Method Detail

      • transactional

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