Class TSResourceManager
java.lang.Object
com.sun.ts.tests.common.connector.whitebox.TSResourceManager
Resource Manager for the TSeis. Completely based on JTS.
- Version:
- 1.0, 06/06/02
- Author:
- Binod P.G
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcloseRM()Closes the Resource Manager.voidCommits the Global Transaction branch.voidEnds the Global Transaction branch.voidopenRM()Opens the Resource Manager.intPrepare the Global Transaction branch.voidRolls back the Global Transaction branch.voidstart(Xid xid, int flags, TSConnection con) Starts the new Global Transaction branch.
- 
Constructor Details- 
TSResourceManagerpublic TSResourceManager()Creates the Resource Manager.
 
- 
- 
Method Details- 
openRMpublic void openRM()Opens the Resource Manager.
- 
closeRMpublic void closeRM()Closes the Resource Manager.
- 
startStarts 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
 
- 
endEnds 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
 
- 
preparePrepare the Global Transaction branch.- Parameters:
- xid- Global Id for the transaction.
- Throws:
- XAExcpetion- In case of a failure / Invalid XA protocol.
- XAException
 
- 
commitCommits the Global Transaction branch.- Parameters:
- xid- Global Id for the transaction.
- Throws:
- XAExcpetion- In case of a failure / Invalid XA protocol.
- XAException
 
- 
rollbackRolls back the Global Transaction branch.- Parameters:
- xid- Global Id for the transaction.
- Throws:
- XAExcpetion- In case of a failure / Invalid XA protocol.
- XAException
 
 
-