public class HessianXAResource extends java.lang.Object implements XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
HessianXAResource(java.lang.String url) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(Xid xid,
boolean onephase)
Called to commit.
|
void |
end(Xid xid,
int flags)
Called when the resource is is done with a transaction.
|
void |
forget(Xid xid)
Called to forget an Xid that had a heuristic commit.
|
int |
getTransactionTimeout()
Gets the transaction timeout in seconds.
|
boolean |
isSameRM(XAResource xares)
Returns true if the specified resource has the same RM.
|
int |
prepare(Xid xid)
Called to start the first phase of the commit.
|
Xid[] |
recover(int flag)
Called to find Xid's that need recovery.
|
void |
rollback(Xid xid)
Called to roll back.
|
boolean |
setTransactionTimeout(int seconds)
Sets the transaction timeout in seconds.
|
void |
start(Xid xid,
int flags)
Called when the resource is associated with a transaction.
|
public boolean isSameRM(XAResource xares)
XAResourceisSameRM in interface XAResourcepublic void start(Xid xid, int flags) throws XAException
XAResourcestart in interface XAResourceXAExceptionpublic void end(Xid xid, int flags) throws XAException
XAResourceend in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int seconds)
throws XAException
XAResourcesetTransactionTimeout in interface XAResourceXAExceptionpublic int getTransactionTimeout()
throws XAException
XAResourcegetTransactionTimeout in interface XAResourceXAExceptionpublic int prepare(Xid xid) throws XAException
XAResourceprepare in interface XAResourceXAExceptionpublic Xid[] recover(int flag) throws XAException
XAResourcerecover in interface XAResourceXAExceptionpublic void forget(Xid xid) throws XAException
XAResourceforget in interface XAResourceXAExceptionpublic void rollback(Xid xid) throws XAException
XAResourcerollback in interface XAResourceXAExceptionpublic void commit(Xid xid, boolean onephase) throws XAException
XAResourcecommit in interface XAResourceXAException