Class PersistentTestXAResource
java.lang.Object
org.jboss.as.test.integration.transactions.TestXAResource
org.jboss.as.test.integration.transactions.PersistentTestXAResource
- All Implemented Interfaces:
XAResource
Enhancement of the TestXAResource which saves prepared Xid to file system.
and delete it from the file on call commit/rollback/forget.
Such a Xid may be reported back to Narayana during periodic recovery when XAResource.recover(int)
is called.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.as.test.integration.transactions.TestXAResource
TestXAResource.TestAction -
Field Summary
Fields inherited from class org.jboss.as.test.integration.transactions.TestXAResource
testActionFields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY -
Constructor Summary
ConstructorsConstructorDescriptionPersistentTestXAResource(TestXAResource.TestAction testAction) PersistentTestXAResource(TestXAResource.TestAction testAction, TransactionCheckerSingleton checker) -
Method Summary
Methods inherited from class org.jboss.as.test.integration.transactions.TestXAResource
end, getPreparedXids, getTransactionTimeout, isSameRM, setTransactionTimeout, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.transaction.xa.XAResource
end, getTransactionTimeout, isSameRM, setTransactionTimeout, start
-
Constructor Details
-
PersistentTestXAResource
public PersistentTestXAResource() -
PersistentTestXAResource
-
PersistentTestXAResource
-
PersistentTestXAResource
public PersistentTestXAResource(TestXAResource.TestAction testAction, TransactionCheckerSingleton checker)
-
-
Method Details
-
prepare
- Specified by:
preparein interfaceXAResource- Overrides:
preparein classTestXAResource- Throws:
XAException
-
commit
- Specified by:
commitin interfaceXAResource- Overrides:
commitin classTestXAResource- Throws:
XAException
-
rollback
- Specified by:
rollbackin interfaceXAResource- Overrides:
rollbackin classTestXAResource- Throws:
XAException
-
forget
- Specified by:
forgetin interfaceXAResource- Overrides:
forgetin classTestXAResource- Throws:
XAException
-
recover
- Specified by:
recoverin interfaceXAResource- Overrides:
recoverin classTestXAResource- Throws:
XAException
-