public class WSATXAResource extends Object implements WSATConstants, XAResource, Serializable
ABORTED, ACTION, ADDRESS, BRANCHQUAL, BRANCHQUAL_QNAME, COMMIT, COMMITTED, COORDINATION_CONTEXT, COORDINATION_TYPE, COORDINATOR_PROTOCOL_SERVICE, CURRENT_WSCOOR, DEBUG_WSAT, DURABLE_2PC, EXPIRES, FAULT_TO, FROM, HTTP_SCHEMAS_XMLSOAP_ORG_WS_2004_10_WSAT, HTTP_SCHEMAS_XMLSOAP_ORG_WS_2004_10_WSAT_DURABLE_2PC, HTTP_SCHEMAS_XMLSOAP_ORG_WS_2004_10_WSAT_VOLATILE_2PC, IDENTIFIER, MESSAGE_ID, MUST_UNDERSTAND, PARTICIPANT_PROTOCOL_SERVICE, PREPARE, PREPARED, PROTOCOL_IDENTIFIER, READONLY, REFERENCE_PARAMETERS, REGISTER, REGISTER_RESPONSE, REGISTRATION_SERVICE, REPLAY, REPLY_TO, ROLLBACK, ROUTING, ROUTING_QNAME, SOAP_ENVELOPE, TO, TXID, TXID_QNAME, TXPROP_WSAT_FOREIGN_RECOVERY_CONTEXT, VOLATILE_2PC, WLA_WSAT_NS_URI, WLS_WSAT, WSA, WSADDRESSING_NS_URI, WSAT, WSAT_COORDINATORPORTTYPEPORT, WSAT_PARTICIPANTPORTTYPEPORT, WSAT_REGISTRATIONCOORDINATORPORTTYPEPORT, WSAT_REGISTRATIONREQUESTERPORTTYPEPORT, WSAT10_NS_URI, WSAT11_COORDINATORPORTTYPEPORT, WSAT11_DURABLE_2PC, WSAT11_NS_URI, WSAT11_PARTICIPANTPORTTYPEPORT, WSAT11_REGISTRATIONCOORDINATORPORTTYPEPORT, WSAT11_REGISTRATIONREQUESTERPORTTYPEPORT, WSAT11_VOLATILE_2PC, WSCOOR, WSCOOR_CONTEXT_QNAME, WSCOOR_REGISTER_QNAME, WSCOOR10_NS_URI, WSCOOR11_CONTEXT_QNAME, WSCOOR11_NS_URI, WSCOOR11_REGISTER_QNAMETMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
WSATXAResource(EndpointReference epr,
Xid xid)
Constructor used for runtime
|
WSATXAResource(Transactional.Version version,
EndpointReference epr,
Xid xid)
Constructor used for runtime
|
WSATXAResource(Transactional.Version version,
EndpointReference epr,
Xid xid,
boolean isRecovery)
Constructor used for recovery
|
| Modifier and Type | Method and Description |
|---|---|
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
|
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.
|
int |
hashCode() |
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() |
public WSATXAResource(EndpointReference epr, Xid xid)
epr - SEndpointReference participant endpoint referencexid - Xid of transactionpublic WSATXAResource(Transactional.Version version, EndpointReference epr, Xid xid)
version - Transactional.Versionepr - EndpointReference participant endpoint referencexid - Xid of transactionpublic WSATXAResource(Transactional.Version version, 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)public void setStatus(String status)
status - String status as found in WSATConstants.public int prepare(Xid xid) throws XAException
prepare in interface XAResourcexid - 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 usedXAException - xaExceptionpublic void commit(Xid xid, boolean onePhase) throws XAException
commit in interface XAResourcexid - 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 ignoredXAException - xaExceptionpublic void rollback(Xid xid) throws XAException
rollback in interface XAResourcexid - 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.XAExceptionpublic void forget(Xid xid) throws XAException
forget in interface XAResourcexid - XidXAExceptionpublic boolean setTransactionTimeout(int i)
throws XAException
setTransactionTimeout in interface XAResourcei - timeoutXAExceptionpublic void start(Xid xid, int i) throws XAException
start in interface XAResourcexid - Xidi - flagXAExceptionpublic void end(Xid xid, int i) throws XAException
end in interface XAResourcexid - Xidi - flagXAException - xaexceptionpublic int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAExceptionpublic boolean isSameRM(XAResource xaResource) throws XAException
isSameRM in interface XAResourcexaResource - XAResourceXAException - xaexeceptionpublic Xid[] recover(int i) throws XAException
recover in interface XAResourcei - flagXAException - xaexceptionpublic Xid getXid()
public void setBranchQualifier(byte[] bqual)
bqual - byte[]public boolean equals(Object obj)