Package com.ibm.jakarta.connector2.cics
Class SPIXAResource
java.lang.Object
com.ibm.jakarta.connector2.cics.SPIXAResource
- All Implemented Interfaces:
XAResource
-
Field Summary
FieldsFields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Asks the resource manager to commit the transaction branch specified in xid.void
Signals the end of a transaction branch specified in xid.void
Asks the resource manager to forget the transaction branch specified in xid.int
Transaction timeouts not supported by ECI Connectorboolean
isSameRM
(XAResource otherXA) int
Asks the resource manager to prepare for a transaction commit of the transaction specified in xid.Xid[]
recover
(int flag) Obtains a list of prepared transaction branches from the resource manager.void
Asks the resource manager to rollback the transaction branch specified in xid.boolean
setTransactionTimeout
(int newTransactionTimeout) Transaction timeouts not supported by ECI Connectorvoid
Signals the start of a transaction branch specified in xid.
-
Field Details
-
CLASS_VERSION
- See Also:
-
-
Constructor Details
-
SPIXAResource
public SPIXAResource()
-
-
Method Details
-
start
Signals the start of a transaction branch specified in xid.- Specified by:
start
in interfaceXAResource
- Parameters:
xid
- A global transaction identifier to be associated with the resource.flags
- One of TMNOFLAGS, TMJOIN, or TMRESUME- Throws:
XAException
- Thrown if the start call fails
-
end
Signals the end of a transaction branch specified in xid.- Specified by:
end
in interfaceXAResource
- Parameters:
xid
- A global transaction identifier to be associated with the resource.flags
- One of TMSUCCESS, TMFAIL, or TMSUSPEND- Throws:
XAException
- Thrown if the end call fails
-
prepare
Asks the resource manager to prepare for a transaction commit of the transaction specified in xid.- Specified by:
prepare
in interfaceXAResource
- Parameters:
xid
- A global transaction identifier to be associated with the resource.- Returns:
- XAResource.XA_OK If the prepare call is successful
- Throws:
XAException
- Thrown if the prepare call fails, indicating we wish to rollback.
-
commit
Asks the resource manager to commit the transaction branch specified in xid.- Specified by:
commit
in interfaceXAResource
- Parameters:
xid
- The global transaction identifier.onePhase
- Indicate whether the global transaction has be optimized to a one phase transaction.- Throws:
XAException
- Thrown if the commit call fails.
-
rollback
Asks the resource manager to rollback the transaction branch specified in xid.- Specified by:
rollback
in interfaceXAResource
- Parameters:
xid
- The global transaction identifier.- Throws:
XAException
- Thrown if the rollback call fails.
-
forget
Asks the resource manager to forget the transaction branch specified in xid.- Specified by:
forget
in interfaceXAResource
- Parameters:
xid
- The global transaction identifier.- Throws:
XAException
- Thrown if forget call fails.
-
recover
Obtains a list of prepared transaction branches from the resource manager. If the start flag is received then all prepared transaction branches will be returned. If the start flag is not received an empty array will be returned.- Specified by:
recover
in interfaceXAResource
- Parameters:
flag
- One of TMSTARTRSCAN, TMENDRSCAN, TMNOFLAGS. TMNOFLAGS- Throws:
XAException
- Thrown if recover call fails.
-
isSameRM
- Specified by:
isSameRM
in interfaceXAResource
- Parameters:
otherXA
-- Returns:
- false always.
-
getTransactionTimeout
public int getTransactionTimeout()Transaction timeouts not supported by ECI Connector- Specified by:
getTransactionTimeout
in interfaceXAResource
- Returns:
- 0 always.
-
setTransactionTimeout
public boolean setTransactionTimeout(int newTransactionTimeout) Transaction timeouts not supported by ECI Connector- Specified by:
setTransactionTimeout
in interfaceXAResource
- Parameters:
newTransactionTimeout
- Not used by the ECI Connector.- Returns:
- false always.
-