Interface TransactionService

    • Method Detail

      • getTransactionManager

        TransactionManager getTransactionManager()
        Returns:
        TransactionManager
      • getUserTransaction

        UserTransaction getUserTransaction()
        Returns:
        UserTransaction
      • getDefaultTimeout

        int getDefaultTimeout()
        Returns:
        default timeout in seconds
      • setTransactionTimeout

        void setTransactionTimeout​(int seconds)
                            throws SystemException
        Sets timeout in seconds,
        Parameters:
        seconds - int
        Throws:
        SystemException
      • enlistResource

        boolean enlistResource​(XAResource xares)
                        throws RollbackException,
                               SystemException,
                               IllegalStateException
        Enlists XA resource in transaction manager.
        Parameters:
        xares - XAResource
        Returns:
        true if the resource was enlisted successfully; otherwise false.
        Throws:
        RollbackException - Thrown to indicate that the transaction has been marked for rollback only.
        IllegalStateException - Thrown if the transaction in the target object is in the prepared state or the transaction is inactive.
        SystemException - Thrown if the transaction manager encounters an unexpected error condition.