java.io.Serializable, javax.transaction.xa.XAResource, WSATConstantspublic class WSATXAResource extends java.lang.Object implements WSATConstants, javax.transaction.xa.XAResource, java.io.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_QNAME| Constructor | Description |
|---|---|
WSATXAResource(javax.xml.ws.EndpointReference epr,
javax.transaction.xa.Xid xid) |
Constructor used for runtime
|
WSATXAResource(Transactional.Version version,
javax.xml.ws.EndpointReference epr,
javax.transaction.xa.Xid xid) |
Constructor used for runtime
|
WSATXAResource(Transactional.Version version,
javax.xml.ws.EndpointReference epr,
javax.transaction.xa.Xid xid,
boolean isRecovery) |
Constructor used for recovery
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
commit(javax.transaction.xa.Xid xid,
boolean onePhase) |
Commit.
|
void |
end(javax.transaction.xa.Xid xid,
int i) |
Not applicable to WS-AT
|
boolean |
equals(java.lang.Object obj) |
Equality check based on instanceof and Xid that identifies this Synchronization
|
void |
forget(javax.transaction.xa.Xid xid) |
Not applicable to WS-AT
|
int |
getTransactionTimeout() |
Not applicable to WS-AT
|
javax.transaction.xa.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(javax.transaction.xa.XAResource xaResource) |
Not applicable to WS-AT
|
int |
prepare(javax.transaction.xa.Xid xid) |
|
javax.transaction.xa.Xid[] |
recover(int i) |
Not applicable to WS-AT
|
void |
rollback(javax.transaction.xa.Xid xid) |
|
void |
setBranchQualifier(byte[] bqual) |
Called from Registration to set branch qualifier that was generated during enlist
|
void |
setStatus(java.lang.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(javax.transaction.xa.Xid xid,
int i) |
Not applicable to WS-AT
|
java.lang.String |
toString() |
public WSATXAResource(javax.xml.ws.EndpointReference epr,
javax.transaction.xa.Xid xid)
epr - SEndpointReference participant endpoint referencexid - Xid of transactionpublic WSATXAResource(Transactional.Version version, javax.xml.ws.EndpointReference epr, javax.transaction.xa.Xid xid)
version - Transactional.Versionepr - EndpointReference participant endpoint referencexid - Xid of transactionpublic WSATXAResource(Transactional.Version version, javax.xml.ws.EndpointReference epr, javax.transaction.xa.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(java.lang.String status)
status - String status as found in WSATConstants.public int prepare(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
prepare in interface javax.transaction.xa.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 usedjavax.transaction.xa.XAException - xaExceptionpublic void commit(javax.transaction.xa.Xid xid,
boolean onePhase)
throws javax.transaction.xa.XAException
commit in interface javax.transaction.xa.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 ignoredjavax.transaction.xa.XAException - xaExceptionpublic void rollback(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
rollback in interface javax.transaction.xa.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.javax.transaction.xa.XAExceptionpublic void forget(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
forget in interface javax.transaction.xa.XAResourcexid - Xidjavax.transaction.xa.XAExceptionpublic boolean setTransactionTimeout(int i)
throws javax.transaction.xa.XAException
setTransactionTimeout in interface javax.transaction.xa.XAResourcei - timeoutjavax.transaction.xa.XAExceptionpublic void start(javax.transaction.xa.Xid xid,
int i)
throws javax.transaction.xa.XAException
start in interface javax.transaction.xa.XAResourcexid - Xidi - flagjavax.transaction.xa.XAExceptionpublic void end(javax.transaction.xa.Xid xid,
int i)
throws javax.transaction.xa.XAException
end in interface javax.transaction.xa.XAResourcexid - Xidi - flagjavax.transaction.xa.XAException - xaexceptionpublic int getTransactionTimeout()
throws javax.transaction.xa.XAException
getTransactionTimeout in interface javax.transaction.xa.XAResourcejavax.transaction.xa.XAExceptionpublic boolean isSameRM(javax.transaction.xa.XAResource xaResource)
throws javax.transaction.xa.XAException
isSameRM in interface javax.transaction.xa.XAResourcexaResource - XAResourcejavax.transaction.xa.XAException - xaexeceptionpublic javax.transaction.xa.Xid[] recover(int i)
throws javax.transaction.xa.XAException
recover in interface javax.transaction.xa.XAResourcei - flagjavax.transaction.xa.XAException - xaexceptionpublic javax.transaction.xa.Xid getXid()
public void setBranchQualifier(byte[] bqual)
bqual - byte[]public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object to conduct equality check againstpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object