Class WebSphereLibertyJtaPlatform

    • Constructor Detail

      • WebSphereLibertyJtaPlatform

        public WebSphereLibertyJtaPlatform()
    • Method Detail

      • getCurrentStatus

        public int getCurrentStatus()
                             throws jakarta.transaction.SystemException
        Description copied from interface: JtaPlatform
        Obtain the current transaction status using whatever means is preferred for this platform
        Specified by:
        getCurrentStatus in interface JtaPlatform
        Overrides:
        getCurrentStatus in class AbstractJtaPlatform
        Returns:
        The current status.
        Throws:
        jakarta.transaction.SystemException - Indicates a problem access the underlying status
      • getTransactionIdentifier

        public Object getTransactionIdentifier​(jakarta.transaction.Transaction transaction)
        Description copied from interface: JtaPlatform
        Determine an identifier for the given transaction appropriate for use in caching/lookup usages.

        Generally speaking the transaction itself will be returned here. This method was added specifically for use in WebSphere and other unfriendly Java EE containers.

        Specified by:
        getTransactionIdentifier in interface JtaPlatform
        Overrides:
        getTransactionIdentifier in class AbstractJtaPlatform
        Parameters:
        transaction - The transaction to be identified.
        Returns:
        An appropriate identifier