Package org.frankframework.jta.narayana
Class DataSourceXAResourceRecoveryHelper
java.lang.Object
org.frankframework.jta.narayana.DataSourceXAResourceRecoveryHelper
- All Implemented Interfaces:
com.arjuna.ats.jta.recovery.XAResourceRecoveryHelper
,XAResource
public class DataSourceXAResourceRecoveryHelper
extends Object
implements com.arjuna.ats.jta.recovery.XAResourceRecoveryHelper, XAResource
XAResourceRecoveryHelper implementation which gets XIDs, which needs to be recovered,
from the database.
See org.springframework.boot.jta.narayana.DataSourceXAResourceRecoveryHelper.
- Since:
- 1.4.0
- Author:
- Gytis Trikleris
-
Field Summary
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
-
Constructor Summary
ConstructorDescriptionDataSourceXAResourceRecoveryHelper
(XADataSource xaDataSource) Create a newDataSourceXAResourceRecoveryHelper
instance.DataSourceXAResourceRecoveryHelper
(XADataSource xaDataSource, String user, String password) Create a newDataSourceXAResourceRecoveryHelper
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
int
boolean
initialise
(String properties) boolean
isSameRM
(XAResource xaResource) int
Xid[]
recover
(int flag) void
boolean
setTransactionTimeout
(int seconds) void
-
Constructor Details
-
DataSourceXAResourceRecoveryHelper
Create a newDataSourceXAResourceRecoveryHelper
instance.- Parameters:
xaDataSource
- the XA data source
-
DataSourceXAResourceRecoveryHelper
Create a newDataSourceXAResourceRecoveryHelper
instance.- Parameters:
xaDataSource
- the XA data sourceuser
- the database user ornull
password
- the database password ornull
-
-
Method Details
-
initialise
- Specified by:
initialise
in interfacecom.arjuna.ats.jta.recovery.XAResourceRecoveryHelper
-
getXAResources
- Specified by:
getXAResources
in interfacecom.arjuna.ats.jta.recovery.XAResourceRecoveryHelper
-
recover
- Specified by:
recover
in interfaceXAResource
- Throws:
XAException
-
start
- Specified by:
start
in interfaceXAResource
- Throws:
XAException
-
end
- Specified by:
end
in interfaceXAResource
- Throws:
XAException
-
prepare
- Specified by:
prepare
in interfaceXAResource
- Throws:
XAException
-
commit
- Specified by:
commit
in interfaceXAResource
- Throws:
XAException
-
rollback
- Specified by:
rollback
in interfaceXAResource
- Throws:
XAException
-
isSameRM
- Specified by:
isSameRM
in interfaceXAResource
- Throws:
XAException
-
forget
- Specified by:
forget
in interfaceXAResource
- Throws:
XAException
-
getTransactionTimeout
- Specified by:
getTransactionTimeout
in interfaceXAResource
- Throws:
XAException
-
setTransactionTimeout
- Specified by:
setTransactionTimeout
in interfaceXAResource
- Throws:
XAException
-