public class JmsXAResourceRecoveryHelper extends Object implements XAResourceRecoveryHelper, XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
JmsXAResourceRecoveryHelper(XAConnectionFactory xaConnectionFactory) |
JmsXAResourceRecoveryHelper(XAConnectionFactory xaConnectionFactory,
String user,
String pass) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(Xid xid,
boolean onePhase)
Delegates XAResource#commit call to the connected JMS resource.
|
void |
end(Xid xid,
int flag)
Delegates XAResource#end call to the connected JMS resource.
|
void |
forget(Xid xid)
Delegates XAResource#forget call to the connected JMS resource.
|
int |
getTransactionTimeout()
Delegates XAResource#getTransactionTimeout call to the connected JMS resource.
|
XAResource[] |
getXAResources()
If JMS connection was created successfully, returns an array with one instance of JmsXAResourceRecoveryHelper.
|
boolean |
initialise(String properties)
Nothing to initialise.
|
boolean |
isSameRM(XAResource xaResource)
Delegates XAResource#isSameRM call to the connected JMS resource.
|
int |
prepare(Xid xid)
Delegates XAResource#prepare call to the connected JMS resource.
|
Xid[] |
recover(int flag)
Delegates XAResource#recover call to the connected JMS resource.
|
void |
rollback(Xid xid)
Delegates XAResource#rollback call to the connected JMS resource.
|
boolean |
setTransactionTimeout(int seconds)
Delegates XAResource#setTransactionTimeout call to the connected JMS resource.
|
void |
start(Xid xid,
int flag)
Delegates XAResource#start call to the connected JMS resource.
|
public JmsXAResourceRecoveryHelper(XAConnectionFactory xaConnectionFactory)
public boolean initialise(String properties)
initialise in interface XAResourceRecoveryHelperproperties - public XAResource[] getXAResources()
getXAResources in interface XAResourceRecoveryHelperpublic Xid[] recover(int flag) throws XAException
recover in interface XAResourceflag - XAExceptionpublic void start(Xid xid, int flag) throws XAException
start in interface XAResourcexid - flag - XAExceptionpublic void end(Xid xid, int flag) throws XAException
end in interface XAResourcexid - flag - XAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourcexid - XAExceptionpublic void commit(Xid xid, boolean onePhase) throws XAException
commit in interface XAResourcexid - onePhase - XAExceptionpublic void rollback(Xid xid) throws XAException
rollback in interface XAResourcexid - XAExceptionpublic boolean isSameRM(XAResource xaResource) throws XAException
isSameRM in interface XAResourcexaResource - XAExceptionpublic void forget(Xid xid) throws XAException
forget in interface XAResourcexid - XAExceptionpublic int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int seconds)
throws XAException
setTransactionTimeout in interface XAResourceseconds - XAExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.