Product SiteDocumentation Site

Chapter 3. How JBossTS manages the OTS Recovery Protocol

3.1. Recovery Protocol in OTS - Overview
3.2. RecoveryCoordinator in JBossTS
3.2.1. Understanding POA
3.3. The default RecoveryCoordinator in JacOrb
3.3.1. How Does it work

3.1. Recovery Protocol in OTS - Overview

To manage recovery in case of failure, the OTS specification has defined a recovery protocol. Transaction’s participants in a doubt status could use the RecoveryCoordinator to determine the status of the transaction. According to that transaction status, those participants can take appropriate decision either by roll backing or committing.
Resource and RecoveryCoordinator relationship
Figure 3.1. Resource and RecoveryCoordinator relationship

A reference to a RecoveryCoordinator is returned as a result of successfully calling register_resource on the transaction Coordinator. This object, which is implicitly associated with a single Resource, can be used to drive the Resource through recovery procedures in the event of a failure occurring during the transaction.