This class represents the physical connection, managed by the pool.
It implements the PooledConnection interface, in fact via the derived
XAConnection interface.
author: durieuxp
setTransactionTimeout(int seconds) Set the current transaction timeout value for this XAResource
instance.
Parameters: seconds - timeout value, in seconds.
Commit the global transaction specified by xid.
Parameters: xid - transaction xid Parameters: onePhase - true if one phase commit throws: XAException - XA protocol error
Ends the work performed on behalf of a transaction branch.
Parameters: xid - transaction xid Parameters: flags - currently unused throws: XAException - XA protocol error
enlistConnection
public void enlistConnection(Transaction transaction) throws javax.transaction.SystemException(Code)
Tell the resource manager to forget about a heuristically
completed transaction branch.
Parameters: xid - transaction xid throws: XAException - XA protocol error
Obtain the current transaction timeout value set for this
XAResource instance.
the current transaction timeout in seconds throws: XAException - XA protocol error
Check if the connection has been unused for too long time.
This occurs usually when the caller forgot to call close().
true if open time has been reached, and not involved in a tx.
Determine if the resource manager instance represented by the
target object is the same as the resource manager instance
represented by the parameter xares
Parameters: xares - An XAResource object True if same RM instance, otherwise false. throws: XAException - XA protocol error
Ask the resource manager to prepare for a transaction commit
of the transaction specified in xid.
Parameters: xid - transaction xid throws: XAException - XA protocol error
Inform the resource manager to roll back work done on behalf
of a transaction branch
Parameters: xid - transaction xid throws: XAException - XA protocol error
public boolean setTransactionTimeout(int seconds) throws XAException(Code)
Set the current transaction timeout value for this XAResource
instance.
Parameters: seconds - timeout value, in seconds. always true throws: XAException - XA protocol error