Class TSResourceManager

java.lang.Object
com.sun.ts.tests.common.connector.whitebox.TSResourceManager

public class TSResourceManager extends Object
Resource Manager for the TSeis. Completely based on JTS.
Version:
1.0, 06/06/02
Author:
Binod P.G
  • Constructor Details

    • TSResourceManager

      public TSResourceManager()
      Creates the Resource Manager.
  • Method Details

    • openRM

      public void openRM()
      Opens the Resource Manager.
    • closeRM

      public void closeRM()
      Closes the Resource Manager.
    • start

      public void start(Xid xid, int flags, TSConnection con) throws XAException
      Starts the new Global Transaction branch. transaction can be started in three ways. 1. With no flags (TMNOFLAGS) : This is starting a new transaction 2. With join flag(TMJOIN) : This is joining new transaction 3. With resume flag(TRESUME) : This is resuming a suspended transaction
      Parameters:
      xid - Global Id for the transaction.
      flags - Flags used for Transaction. For more details see JTA spec.
      con - Connection involved in the Global Transaction.
      Throws:
      XAExcpetion - In case of a failure / Invalid flag / Invalid XA protocol.
      XAException
    • end

      public void end(Xid xid, int flags) throws XAException
      Ends the Global Transaction branch.
      Parameters:
      xid - Global Id for the transaction.
      flags - Flags used for Transaction. For more details see JTA spec.
      Throws:
      XAExcpetion - In case of a failure / Invalid flag / Invalid XA protocol.
      XAException
    • prepare

      public int prepare(Xid xid) throws XAException
      Prepare the Global Transaction branch.
      Parameters:
      xid - Global Id for the transaction.
      Throws:
      XAExcpetion - In case of a failure / Invalid XA protocol.
      XAException
    • commit

      public void commit(Xid xid, boolean onePhase) throws XAException
      Commits the Global Transaction branch.
      Parameters:
      xid - Global Id for the transaction.
      Throws:
      XAExcpetion - In case of a failure / Invalid XA protocol.
      XAException
    • rollback

      public void rollback(Xid xid) throws XAException
      Rolls back the Global Transaction branch.
      Parameters:
      xid - Global Id for the transaction.
      Throws:
      XAExcpetion - In case of a failure / Invalid XA protocol.
      XAException