|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.ejb.hessian.HessianXAResource
public class HessianXAResource
Resource
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 | |
---|---|
HessianXAResource(java.lang.String url)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HessianXAResource(java.lang.String url)
Method Detail |
---|
public boolean isSameRM(XAResource xares)
XAResource
isSameRM
in interface XAResource
public void start(Xid xid, int flags) throws XAException
XAResource
start
in interface XAResource
XAException
public void end(Xid xid, int flags) throws XAException
XAResource
end
in interface XAResource
XAException
public boolean setTransactionTimeout(int seconds) throws XAException
XAResource
setTransactionTimeout
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
XAResource
getTransactionTimeout
in interface XAResource
XAException
public int prepare(Xid xid) throws XAException
XAResource
prepare
in interface XAResource
XAException
public Xid[] recover(int flag) throws XAException
XAResource
recover
in interface XAResource
XAException
public void forget(Xid xid) throws XAException
XAResource
forget
in interface XAResource
XAException
public void rollback(Xid xid) throws XAException
XAResource
rollback
in interface XAResource
XAException
public void commit(Xid xid, boolean onephase) throws XAException
XAResource
commit
in interface XAResource
XAException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |