|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.tx.at.internal.WSATGatewayRM
public class WSATGatewayRM
Gateway XAResource for managing outbound WS-AT transaction branches.
| Field Summary | |
|---|---|
static boolean |
isReadyForRuntime
|
static String |
txlogdir
|
| Fields inherited from interface javax.transaction.xa.XAResource |
|---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| Method Summary | |
|---|---|
void |
afterRecovery(boolean success,
boolean delegated,
String instance)
Indicate to the listener that recovery is over. |
void |
beforeRecovery(boolean delegated,
String instance)
Indicate to the listener that recovery for a specific instance is about to start. |
void |
commit(Xid xid,
boolean onePhase)
|
static WSATGatewayRM |
create()
Called during tube/web service init |
boolean |
detectedUnavailable()
Return true as WSATGatewayRM is always available, health should not change. |
void |
end(Xid xid,
int flags)
|
void |
forget(Xid xid)
|
int |
getDelistFlag()
Always returns TMSUCCESS, avoids unnecessary suspend |
static WSATGatewayRM |
getInstance()
called by transaction services for enlistment and used by HA delegation |
int |
getTransactionTimeout()
Not applicable |
boolean |
isSameRM(XAResource xares)
There is only one WSATGatewayRM per server for active transactions and isSameRM should not be called for any migrated WSATGatewayRM instances |
int |
prepare(Xid xid)
|
void |
recover()
Used for lazy/automatic-recovery="false" |
Xid[] |
recover(int flag)
Call for local recover/server specified by null instance value |
Xid[] |
recover(int flag,
String instance)
Call for delegated recovery specified by non-null instance |
Xid |
registerWSATResource(Xid xid,
XAResource wsatResource,
Transaction tx)
Enlist a foreign WS-AT resource in the current transaction. |
void |
rollback(Xid xid)
|
boolean |
setTransactionTimeout(int seconds)
Not applicable |
void |
start(Xid xid,
int flags)
Implementation of Subordinate/ServerXAResource called in reaction to registerWSATResource enlistResource call This should be the only use/patch of this method NOTE: lock on currentBQual must be obtained before calling this method as it is in |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean isReadyForRuntime
public static String txlogdir
| Method Detail |
|---|
public static WSATGatewayRM getInstance()
public static WSATGatewayRM create()
public Xid registerWSATResource(Xid xid,
XAResource wsatResource,
Transaction tx)
throws IllegalStateException,
RollbackException,
SystemException
xid - The current, superior transaction id.wsatResource - The foreign WS-AT resource.
SystemException - from enlistResource
RollbackException - from enlistResource
IllegalStateException - from enlistResource
public void start(Xid xid,
int flags)
throws XAException
start in interface XAResourcexid - Xidflags - flags
XAException - xaException
public void end(Xid xid,
int flags)
throws XAException
end in interface XAResourceXAException
public int prepare(Xid xid)
throws XAException
prepare in interface XAResourceXAException
public void commit(Xid xid,
boolean onePhase)
throws XAException
commit in interface XAResourceXAException
public void rollback(Xid xid)
throws XAException
rollback in interface XAResourceXAExceptionpublic void recover()
public Xid[] recover(int flag)
throws XAException
recover in interface XAResourceflag -
XAException
public Xid[] recover(int flag,
String instance)
throws XAException
flag - instance -
XAException
public void forget(Xid xid)
throws XAException
forget in interface XAResourceXAException
public int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAException
public boolean setTransactionTimeout(int seconds)
throws XAException
setTransactionTimeout in interface XAResourceseconds - int
XAException - xaException
public boolean isSameRM(XAResource xares)
throws XAException
isSameRM in interface XAResourcexares - XAResource
XAExceptionpublic boolean detectedUnavailable()
public int getDelistFlag()
public void beforeRecovery(boolean delegated,
String instance)
WSATRuntimeConfig.RecoveryEventListener
beforeRecovery in interface WSATRuntimeConfig.RecoveryEventListenerdelegated - identifies whether it is part of a delegated transaction recoveryinstance - the instance name for which transaction recovery is performed, null if unknown
public void afterRecovery(boolean success,
boolean delegated,
String instance)
WSATRuntimeConfig.RecoveryEventListener
afterRecovery in interface WSATRuntimeConfig.RecoveryEventListenersuccess - true if the recovery operation finished successfullydelegated - identifies whether it is part of a delegated transaction recoveryinstance - the instance name for which transaction recovery is performed, null if unknown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||