Class TestXAResourceRecoveryHelper
java.lang.Object
org.jboss.as.test.integration.transactions.spi.TestXAResourceRecoveryHelper
- All Implemented Interfaces:
com.arjuna.ats.jta.recovery.XAResourceRecoveryHelper
public class TestXAResourceRecoveryHelper
extends Object
implements com.arjuna.ats.jta.recovery.XAResourceRecoveryHelper
Singleton startup class which instantiate the XAResourceRecoveryHelper
for TestXAResource and PersistentTestXAResource created in the testsuite/shared
module for testing transactional behaviour.
The recovery helper is registered within the XARecoveryModule. That's the way which is provided
by Narayana to work with the XAResources during recovery.
The XAResourceRecoveryHelper then provides information on unfinished Xid
of the particular XAResource that the helper is responsible for.
If the arquillian test deployment contains this class the recovery handling is able to use the test xa resources during recovery.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionImplementingXAResourceRecoveryHelper.getXAResources()Returning the testXAResources which are then used during recovery byXARecoveryModulewhere theXAResource.recover(int)is invoked.booleaninitialise(String param) ImplementingXAResourceRecoveryHelper.initialise(String).voidSingleton lifecycle method.voidSingleton lifecycle method.
-
Constructor Details
-
TestXAResourceRecoveryHelper
public TestXAResourceRecoveryHelper()
-
-
Method Details
-
postConstruct
@PostConstruct public void postConstruct()Singleton lifecycle method. Register the recovery module with the transaction manager. -
preDestroy
@PreDestroy public void preDestroy()Singleton lifecycle method. Unregister the recovery module from the transaction manager. -
initialise
ImplementingXAResourceRecoveryHelper.initialise(String). Narayana does not use this.- Specified by:
initialisein interfacecom.arjuna.ats.jta.recovery.XAResourceRecoveryHelper- Throws:
Exception
-
getXAResources
ImplementingXAResourceRecoveryHelper.getXAResources()Returning the testXAResources which are then used during recovery byXARecoveryModulewhere theXAResource.recover(int)is invoked.- Specified by:
getXAResourcesin interfacecom.arjuna.ats.jta.recovery.XAResourceRecoveryHelper- Throws:
Exception
-