public class TransactionServicesImpl extends Object implements TransactionServices
| Modifier and Type | Method and Description |
|---|---|
void |
commit(byte[] tId)
Called by Participant endpoint to commit tx/subordinate branch
|
Xid |
enlistResource(XAResource resource,
Xid xid)
Called by Registraion Service during register call in order to enlist WSAT XAResource
(this is essentially the WSAT participant EPR wrapper that is serialized for recovery)
and return branchqual in order to create RegisterResponseType
|
byte[] |
getGlobalTransactionId()
The tx id of the tx on this thread
|
static TransactionServices |
getInstance() |
EndpointReference |
getParentReference(Xid xid)
Called from Participant service to get the Coordinator(PortType) for this Xid
|
Xid |
importTransaction(int timeout,
byte[] tId)
Called by server tube (WSATServerHelper) to infect thread with tx
|
String |
prepare(byte[] tId)
Called by Participant endpoint to prepare tx/subordinate branch
|
void |
registerSynchronization(Synchronization synchronization,
Xid xid)
Called by Registration service to register a volatile participant
|
void |
replayCompletion(String tId,
XAResource xaResource)
Called by Coordinator replay operation
Bottom-up recovery call, as in JTS, a hint to resend
|
void |
rollback(byte[] tId)
Called by Participant endpoint to prepare tx/subordinate branch
|
public static TransactionServices getInstance()
public byte[] getGlobalTransactionId()
TransactionServicesgetGlobalTransactionId in interface TransactionServicespublic Xid enlistResource(XAResource resource, Xid xid) throws WSATException
TransactionServicesenlistResource in interface TransactionServicesresource - (WSAT)XAResourcexid - XidWSATException - any error during enlist as WSAT GatewayRMpublic void registerSynchronization(Synchronization synchronization, Xid xid) throws WSATException
TransactionServicesregisterSynchronization in interface TransactionServicessynchronization - javax.transaction.Synchronizationxid - XidWSATException - wsatXAResourcepublic Xid importTransaction(int timeout, byte[] tId) throws WSATException
TransactionServicesimportTransaction in interface TransactionServicestimeout - timeout/ttltId - byte[]WSATException - wsatXAResourcepublic String prepare(byte[] tId) throws WSATException
TransactionServicesprepare in interface TransactionServicestId - byte[]WSATException - wsatXAResourcepublic void commit(byte[] tId)
throws WSATException
TransactionServicescommit in interface TransactionServicestId - byte[]WSATException - wsatXAResourcepublic void rollback(byte[] tId)
throws WSATException
TransactionServicesrollback in interface TransactionServicestId - byte[]WSATException - wsatXAResourcepublic void replayCompletion(String tId, XAResource xaResource) throws WSATException
TransactionServicesreplayCompletion in interface TransactionServicestId - byte[]xaResource - (WSAT)XAResourceWSATException - wsatXAResourcepublic EndpointReference getParentReference(Xid xid)
TransactionServicesgetParentReference in interface TransactionServicesxid - XidCopyright © 2005–2018 Oracle Corporation. All rights reserved.