|
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 All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.wsee.wstx.wsat.WSATHelper<T>
public class WSATHelper<T>
This singleton serves not only as a helper and utility but as the core of the WS-AT resource manager and holds the datastructures that maintain the endpoint references for durable/XAResource and volatile/Synchronization WS-AT transaction participants. Rather than translate back and forth between the WLS WS-AT and internal Xid, the WLS WS-AT could simply be used for the keys in this class, however, we are working with Xids as keys and identity for convenience and better debug logging information as there do not appear to be any substantial performance implications.
Field Summary | |
---|---|
protected weblogic.wsee.wstx.wsat.common.WSATVersion<T> |
builderFactory
|
static WSATHelper |
V10
|
static WSATHelper |
V11
|
Constructor Summary | |
---|---|
protected |
WSATHelper()
|
Method Summary | |
---|---|
static String |
assignUUID()
|
void |
beforeCompletion(javax.xml.ws.EndpointReference epr,
Xid xid,
WSATSynchronization wsatSynchronization)
beforeCompletion call on volatile participant |
void |
commit(javax.xml.ws.EndpointReference epr,
Xid xid,
WSATXAResource wsatXAResource)
Unlike rollback, Xids are not added to the durable participant XAResource map during commit as prepare must always be called in WS-AT (there is no onePhase commit) and prepare must add the Xid to the map. |
void |
debug(String msg)
|
String |
getBQualFromWebServiceContextHeaderList(javax.xml.ws.WebServiceContext context)
Called by Coordinator to get/create Xid |
String |
getCoordinatorAddress()
|
weblogic.wsee.wstx.wsat.common.CoordinatorIF<T> |
getCoordinatorPort(javax.xml.ws.EndpointReference epr,
Xid xid)
Called from ForeignRecoveryContext.run |
Map<WSATXAResource,weblogic.wsee.wstx.wsat.common.ParticipantIF<T>> |
getDurableParticipantPortMap()
|
static WSATHelper |
getInstance()
|
static WSATHelper |
getInstance(Transactional.Version version)
|
String |
getParticipantAddress()
|
weblogic.wsee.wstx.wsat.common.ParticipantIF<T> |
getParticipantPort(javax.xml.ws.EndpointReference epr,
Xid xid,
String bqual)
Creates and returns a ParticipantPortType, whether it be durable or volatile, for the provided address, Xid, and reference parameter Elements/Nodes |
String |
getRegistrationCoordinatorAddress()
|
String |
getRegistrationRequesterAddress()
|
String |
getRoutingAddress()
|
static weblogic.wsee.wstx.TransactionServices |
getTransactionServices()
Return the TransactionServices See interface for details... |
Map<Xid,weblogic.wsee.wstx.wsat.common.ParticipantIF<T>> |
getVolatileParticipantPortMap()
|
Map<Xid,WSATSynchronization> |
getVolatileParticipantSynchronizationMap()
|
int |
getWaitForReplyTimeout()
Amount of time to wait for a reply from a prepare, rollback, commit, or beforeCompletion call before throwing the appropriate exception, errorcode, etc. |
String |
getWSATTidFromWebServiceContextHeaderList(javax.xml.ws.WebServiceContext context)
Used by getXidFromWebServiceContextHeaderList in WSATHelper and replayOperation of Coordinator service |
WLXid |
getXidFromWebServiceContextHeaderList(javax.xml.ws.WebServiceContext context)
Given a WebServiceContext extract and return the WLS WS-AT transaction id and return the translated WLSXid |
static boolean |
isDebugEnabled()
Need to check if debug is enabled before all logging to prevent unnecessary object creation. |
void |
prepare(javax.xml.ws.EndpointReference epr,
Xid xid,
WSATXAResource wsatXAResource)
Get/create participant port and place it in the cache, issue prepare upon it, and place the WSATXAResource in the map. |
void |
rollback(javax.xml.ws.EndpointReference epr,
Xid xid,
WSATXAResource wsatXAResource)
Rollback can be called before or after prepare so we could do a state check here to avoid the redundant put in the latter case, but it is harmless to re-put and likely not a drastic performance concern. |
boolean |
setDurableParticipantStatus(Xid xid,
String status)
Called by Coordinator in order to update status and unblock async/one-way calls made for durable participants |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final WSATHelper V10
public static final WSATHelper V11
protected weblogic.wsee.wstx.wsat.common.WSATVersion<T> builderFactory
Constructor Detail |
---|
protected WSATHelper()
Method Detail |
---|
public static WSATHelper getInstance()
public static WSATHelper getInstance(Transactional.Version version)
public static weblogic.wsee.wstx.TransactionServices getTransactionServices()
public int getWaitForReplyTimeout()
public boolean setDurableParticipantStatus(Xid xid, String status)
xid
- XIdstatus
- String
public void prepare(javax.xml.ws.EndpointReference epr, Xid xid, WSATXAResource wsatXAResource) throws XAException
epr
- EndpointReference participant endpoint referencexid
- Xid of transaction as obtained from WSATXAResourcewsatXAResource
- WSATXAResource
XAException
- xaExceptionpublic void commit(javax.xml.ws.EndpointReference epr, Xid xid, WSATXAResource wsatXAResource) throws XAException
epr
- EndpointReference participant endpoint referencexid
- Xid of transaction as obtained from WSATXAResourcewsatXAResource
- WSATXAResource
XAException
- xaExceptionpublic void rollback(javax.xml.ws.EndpointReference epr, Xid xid, WSATXAResource wsatXAResource) throws XAException
epr
- EndpointReference participant endpoint referencexid
- Xid of transaction as obtained from WSATXAResourcewsatXAResource
- WSATXAResource
XAException
- xaExceptionpublic void beforeCompletion(javax.xml.ws.EndpointReference epr, Xid xid, WSATSynchronization wsatSynchronization) throws SOAPException
epr
- EndpointReference participant endpoint referencexid
- Xid of transactionwsatSynchronization
- WSATSynchronization
SOAPException
- soapExceptionpublic weblogic.wsee.wstx.wsat.common.ParticipantIF<T> getParticipantPort(javax.xml.ws.EndpointReference epr, Xid xid, String bqual) throws SOAPException
epr
- EndpointReference participant endpoint referencexid
- Xid of transactionbqual
- String bqual of transaction
SOAPException
- soapExceptionpublic weblogic.wsee.wstx.wsat.common.CoordinatorIF<T> getCoordinatorPort(javax.xml.ws.EndpointReference epr, Xid xid)
epr
- EndpointReference for toxid
- Xid to find
public String getRoutingAddress()
public String getRegistrationCoordinatorAddress()
public String getCoordinatorAddress()
public String getParticipantAddress()
public String getRegistrationRequesterAddress()
public WLXid getXidFromWebServiceContextHeaderList(javax.xml.ws.WebServiceContext context)
context
- WebServiceContext
public String getWSATTidFromWebServiceContextHeaderList(javax.xml.ws.WebServiceContext context)
context
- WebServiceContext
public String getBQualFromWebServiceContextHeaderList(javax.xml.ws.WebServiceContext context)
context
- WebServiceContext
public static boolean isDebugEnabled()
public Map<WSATXAResource,weblogic.wsee.wstx.wsat.common.ParticipantIF<T>> getDurableParticipantPortMap()
public Map<Xid,WSATSynchronization> getVolatileParticipantSynchronizationMap()
public Map<Xid,weblogic.wsee.wstx.wsat.common.ParticipantIF<T>> getVolatileParticipantPortMap()
public void debug(String msg)
public static String assignUUID()
|
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 All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |