Interface TransactionService


  • public interface TransactionService
    Transaction related service.
    Version:
    $Rev$ $Date$
    • Method Detail

      • getTransaction

        Transaction getTransaction()
        Get the transaction context of the calling thread
        Returns:
        the Transaction or null if no TransactionManager is used.
      • getUserTransaction

        UserTransaction getUserTransaction()
        Gets user transaction instance.
        Returns:
        user transaction object
      • registerTransactionSynchronization

        void registerTransactionSynchronization​(javax.enterprise.event.TransactionPhase phase,
                                                javax.enterprise.inject.spi.ObserverMethod<? super Object> observer,
                                                Object event)
                                         throws Exception
        Register transaction synch.
        Parameters:
        phase - transaction phase
        observer - observer
        event - event
        Throws:
        Exception