public class TransactionBoundXAResource extends Object implements XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
Constructor and Description |
---|
TransactionBoundXAResource(JCAManagedConnection connection,
XAResource xaResource) |
Modifier and Type | Method and Description |
---|---|
void |
commit(Xid arg0,
boolean arg1) |
void |
end(Xid arg0,
int arg1) |
void |
forget(Xid arg0) |
int |
getTransactionTimeout() |
boolean |
isSameRM(XAResource arg0) |
int |
prepare(Xid arg0) |
protected void |
rebind(XAResource res)
There is a one-to-one Relation between this TransactionBoundXAResource
and the JCAManagedConnection so the used XAResource must be in sync when it is changed in the
JCAManagedConnection.
|
Xid[] |
recover(int arg0) |
void |
rollback(Xid arg0) |
boolean |
setTransactionTimeout(int arg0) |
void |
start(Xid arg0,
int arg1) |
public TransactionBoundXAResource(JCAManagedConnection connection, XAResource xaResource)
protected void rebind(XAResource res)
res
- public void commit(Xid arg0, boolean arg1) throws XAException
commit
in interface XAResource
XAException
public void end(Xid arg0, int arg1) throws XAException
end
in interface XAResource
XAException
public void forget(Xid arg0) throws XAException
forget
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean isSameRM(XAResource arg0) throws XAException
isSameRM
in interface XAResource
XAException
public int prepare(Xid arg0) throws XAException
prepare
in interface XAResource
XAException
public Xid[] recover(int arg0) throws XAException
recover
in interface XAResource
XAException
public void rollback(Xid arg0) throws XAException
rollback
in interface XAResource
XAException
public boolean setTransactionTimeout(int arg0) throws XAException
setTransactionTimeout
in interface XAResource
XAException
public void start(Xid arg0, int arg1) throws XAException
start
in interface XAResource
XAException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.