|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.wsee.wstx.wsat.WSATXAResource
public class WSATXAResource
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 | |
---|---|
WSATXAResource(javax.xml.ws.EndpointReference epr,
Xid xid)
Constructor used for runtime |
|
WSATXAResource(Transactional.Version version,
javax.xml.ws.EndpointReference epr,
Xid xid)
Constructor used for runtime |
|
WSATXAResource(Transactional.Version version,
javax.xml.ws.EndpointReference epr,
Xid xid,
boolean isRecovery)
Constructor used for recovery |
Method Summary | |
---|---|
void |
commit(Xid xid,
boolean onePhase)
Commit. |
void |
end(Xid xid,
int i)
Not applicable to WS-AT |
boolean |
equals(Object obj)
Equality check based on instanceof and Xid that identifies this Synchronization |
protected void |
finalize()
Prevents leaks in the event of protocol exceptions, abandonments, etc. |
void |
forget(Xid xid)
Not applicable to WS-AT |
int |
getTransactionTimeout()
Not applicable to WS-AT |
Xid |
getXid()
Returns Xid for use in equality, as key in durable participant map, and from gateway registerWSATResource of subordinate/participant. |
boolean |
isSameRM(XAResource xaResource)
Not applicable to WS-AT |
int |
prepare(Xid xid)
|
Xid[] |
recover(int i)
Not applicable to WS-AT |
void |
rollback(Xid xid)
|
void |
setBranchQualifier(byte[] bqual)
Called from Registration to set branch qualifier that was generated during enlist |
void |
setStatus(String status)
Called by Coordinator service in reaction to completion operation call in order to setStatus accordingly |
boolean |
setTransactionTimeout(int i)
Not applicable to WS-AT |
void |
start(Xid xid,
int i)
Not applicable to WS-AT |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WSATXAResource(javax.xml.ws.EndpointReference epr, Xid xid)
epr
- SEndpointReference participant endpoint referencexid
- Xid of transactionpublic WSATXAResource(Transactional.Version version, javax.xml.ws.EndpointReference epr, Xid xid)
version
- Transactional.Versionepr
- EndpointReference participant endpoint referencexid
- Xid of transactionpublic WSATXAResource(Transactional.Version version, javax.xml.ws.EndpointReference epr, Xid xid, boolean isRecovery)
version
- Transactional.Versionepr
- EndpointReference participant endpoint referencexid
- Xid of transactionisRecovery
- true if for recovery, false if not (ie if for runtime)Method Detail |
---|
public void setStatus(String status)
status
- String status as found in WSATConstants.public int prepare(Xid xid) throws XAException
prepare
in interface XAResource
xid
- Xid The actual Xid passed in is ignored and the member variable used instead as the value passed in
as there is a final 1-to-1 relationship between WSATXAResource and Xid. In reality is doesn't matter but in
order to be consistent with rollback (where it does matter), the member variable is used
XAException
- xaExceptionprotected void finalize() throws Throwable
finalize
in class Object
Throwable
- he Exception
raised by this methodpublic void commit(Xid xid, boolean onePhase) throws XAException
commit
in interface XAResource
xid
- Xid The actual Xid passed in is ignored and the member variable used instead as there is a final
1-to-1 relationship between WSATXAResource and Xid during construction. In reality is doesn't matter but in
order to be consistent with rollback (where it does matter), the member variable is usedonePhase
- there is no single phase commit in WS-AT and so this is ignored
XAException
- xaExceptionpublic void rollback(Xid xid) throws XAException
rollback
in interface XAResource
xid
- Xid The actual Xid passed in is ignored and the member variable used instead as the value passed in
will be null for bottom-up recovery and because there is a final 1-to-1 relationship between WSATXAResource and Xid.
XAException
public void forget(Xid xid) throws XAException
forget
in interface XAResource
xid
- Xid
XAException
public boolean setTransactionTimeout(int i) throws XAException
setTransactionTimeout
in interface XAResource
i
- timeout
XAException
public void start(Xid xid, int i) throws XAException
start
in interface XAResource
xid
- Xidi
- flag
XAException
public void end(Xid xid, int i) throws XAException
end
in interface XAResource
xid
- Xidi
- flag
XAException
- xaexceptionpublic int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean isSameRM(XAResource xaResource) throws XAException
isSameRM
in interface XAResource
xaResource
- XAResource
XAException
- xaexeceptionpublic Xid[] recover(int i) throws XAException
recover
in interface XAResource
i
- flag
XAException
- xaexceptionpublic Xid getXid()
public void setBranchQualifier(byte[] bqual)
bqual
- byte[]public boolean equals(Object obj)
equals
in class Object
obj
- Object to conduct equality check against
public String toString()
toString
in class Object
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |