Package com.sun.xml.ws.tx.at.internal
Class TransactionServicesImpl
- java.lang.Object
-
- com.sun.xml.ws.tx.at.internal.TransactionServicesImpl
-
- All Implemented Interfaces:
TransactionServices
public class TransactionServicesImpl extends Object implements TransactionServices
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit(byte[] tId)Called by Participant endpoint to commit tx/subordinate branchXidenlistResource(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 RegisterResponseTypebyte[]getGlobalTransactionId()The tx id of the tx on this threadstatic TransactionServicesgetInstance()javax.xml.ws.EndpointReferencegetParentReference(Xid xid)Called from Participant service to get the Coordinator(PortType) for this XidXidimportTransaction(int timeout, byte[] tId)Called by server tube (WSATServerHelper) to infect thread with txStringprepare(byte[] tId)Called by Participant endpoint to prepare tx/subordinate branchvoidregisterSynchronization(javax.transaction.Synchronization synchronization, Xid xid)Called by Registration service to register a volatile participantvoidreplayCompletion(String tId, XAResource xaResource)Called by Coordinator replay operation Bottom-up recovery call, as in JTS, a hint to resendvoidrollback(byte[] tId)Called by Participant endpoint to prepare tx/subordinate branch
-
-
-
Method Detail
-
getInstance
public static TransactionServices getInstance()
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
Description copied from interface:TransactionServicesThe tx id of the tx on this thread- Specified by:
getGlobalTransactionIdin interfaceTransactionServices- Returns:
- byte[] tid
-
enlistResource
public Xid enlistResource(XAResource resource, Xid xid) throws WSATException
Description copied from interface:TransactionServicesCalled 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- Specified by:
enlistResourcein interfaceTransactionServices- Parameters:
resource- (WSAT)XAResourcexid- Xid- Returns:
- byte[] branchqual to use for
- Throws:
WSATException- any error during enlist as WSAT GatewayRM
-
registerSynchronization
public void registerSynchronization(javax.transaction.Synchronization synchronization, Xid xid) throws WSATExceptionDescription copied from interface:TransactionServicesCalled by Registration service to register a volatile participant- Specified by:
registerSynchronizationin interfaceTransactionServices- Parameters:
synchronization- javax.transaction.Synchronizationxid- Xid- Throws:
WSATException- wsatXAResource
-
importTransaction
public Xid importTransaction(int timeout, byte[] tId) throws WSATException
Description copied from interface:TransactionServicesCalled by server tube (WSATServerHelper) to infect thread with tx- Specified by:
importTransactionin interfaceTransactionServices- Parameters:
timeout- timeout/ttltId- byte[]- Throws:
WSATException- wsatXAResource
-
prepare
public String prepare(byte[] tId) throws WSATException
Description copied from interface:TransactionServicesCalled by Participant endpoint to prepare tx/subordinate branch- Specified by:
preparein interfaceTransactionServices- Parameters:
tId- byte[]- Returns:
- String vote, see WSATConstants
- Throws:
WSATException- wsatXAResource
-
commit
public void commit(byte[] tId) throws WSATExceptionDescription copied from interface:TransactionServicesCalled by Participant endpoint to commit tx/subordinate branch- Specified by:
commitin interfaceTransactionServices- Parameters:
tId- byte[]- Throws:
WSATException- wsatXAResource
-
rollback
public void rollback(byte[] tId) throws WSATExceptionDescription copied from interface:TransactionServicesCalled by Participant endpoint to prepare tx/subordinate branch- Specified by:
rollbackin interfaceTransactionServices- Parameters:
tId- byte[]- Throws:
WSATException- wsatXAResource
-
replayCompletion
public void replayCompletion(String tId, XAResource xaResource) throws WSATException
Description copied from interface:TransactionServicesCalled by Coordinator replay operation Bottom-up recovery call, as in JTS, a hint to resend- Specified by:
replayCompletionin interfaceTransactionServices- Parameters:
tId- byte[]xaResource- (WSAT)XAResource- Throws:
WSATException- wsatXAResource
-
getParentReference
public javax.xml.ws.EndpointReference getParentReference(Xid xid)
Description copied from interface:TransactionServicesCalled from Participant service to get the Coordinator(PortType) for this Xid- Specified by:
getParentReferencein interfaceTransactionServices- Parameters:
xid- Xid- Returns:
- EndpointReference of Coordinator (as obtained from earlier RegisterResponse)
-
-