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(javax.jms.XAConnectionFactory xaConnectionFactory) |
JmsXAResourceRecoveryHelper(javax.jms.XAConnectionFactory xaConnectionFactory,
String user,
String pass) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(Xid xid,
boolean b)
Delegates XAResource#commit call to the connected JMS resource.
|
void |
end(Xid xid,
int i)
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 i)
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 i)
Delegates XAResource#setTransactionTimeout call to the connected JMS resource.
|
void |
start(Xid xid,
int i)
Delegates XAResource#start call to the connected JMS resource.
|
public JmsXAResourceRecoveryHelper(javax.jms.XAConnectionFactory xaConnectionFactory)
public boolean initialise(String properties)
initialise in interface XAResourceRecoveryHelperproperties - public XAResource[] getXAResources()
getXAResources in interface XAResourceRecoveryHelperpublic Xid[] recover(int i) throws XAException
recover in interface XAResourcei - XAExceptionpublic void start(Xid xid, int i) throws XAException
start in interface XAResourcexid - i - XAExceptionpublic void end(Xid xid, int i) throws XAException
end in interface XAResourcexid - i - XAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourcexid - XAExceptionpublic void commit(Xid xid, boolean b) throws XAException
commit in interface XAResourcexid - b - 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 i)
throws XAException
setTransactionTimeout in interface XAResourcei - XAExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.