Class RemotingTransactionServer


  • public final class RemotingTransactionServer
    extends Object
    The per-connection transaction server. This can be used to resolve a local transaction for a given transaction ID.
    Author:
    David M. Lloyd
    • Method Detail

      • requireTransaction

        @NotNull
        public LocalTransaction requireTransaction​(int id)
                                            throws jakarta.transaction.SystemException
        Throws:
        jakarta.transaction.SystemException
      • getOrBeginTransaction

        @NotNull
        public LocalTransaction getOrBeginTransaction​(int id,
                                                      int timeout)
                                               throws jakarta.transaction.SystemException
        Throws:
        jakarta.transaction.SystemException
      • getTransactionIfExists

        public LocalTransaction getTransactionIfExists​(int id)
      • getTransactionService

        public RemotingTransactionService getTransactionService()
        Get the transaction service for this server.
        Returns:
        the transaction service for this server (not null)