Class RemoteTransactionContext

    • Constructor Detail

      • RemoteTransactionContext

        public RemoteTransactionContext​(ClassLoader classLoader)
        Construct a new instance. The given class loader is scanned for transaction providers.
        Parameters:
        classLoader - the class loader to scan for transaction providers (null indicates the application or bootstrap class loader)
      • RemoteTransactionContext

        public RemoteTransactionContext​(List<RemoteTransactionProvider> providers)
        Construct a new instance. The given non-empty list of providers is used.
        Parameters:
        providers - the list of providers to use (must not be null or empty)
    • Method Detail

      • registerCreationListener

        public void registerCreationListener​(CreationListener creationListener)
        Register a transaction creation listener.
        Parameters:
        creationListener - the creation listener (must not be null)
      • removeCreationListener

        public void removeCreationListener​(CreationListener creationListener)
        Remove a transaction creation listener.
        Parameters:
        creationListener - the creation listener (must not be null)
      • getContextManager

        public static org.wildfly.common.context.ContextManager<RemoteTransactionContext> getContextManager()
        Get the remote transaction context manager.
        Returns:
        the context manager
      • getInstanceContextManager

        public org.wildfly.common.context.ContextManager<RemoteTransactionContext> getInstanceContextManager()
        Specified by:
        getInstanceContextManager in interface org.wildfly.common.context.Contextual<RemoteTransactionContext>
      • getInstance

        public static RemoteTransactionContext getInstance()
        Get the active remote transaction context instance.
        Returns:
        the remote transaction context instance (not null)
      • getUserTransaction

        public RemoteUserTransaction getUserTransaction()
        Get a UserTransaction that controls a remote transactions state at the given location. The transaction context may cache these instances by location.
        Returns:
        the UserTransaction (not null)
      • getUserTransaction$$bridge_compat

        public UserTransaction getUserTransaction$$bridge_compat()
        Deprecated.
        Please use getUserTransaction() instead.
        Compatibility bridge method.
        Returns:
        the UserTransaction (not null)