|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.genericra.AbstractXAResourceType
com.sun.genericra.inbound.SimpleXAResourceProxy
public class SimpleXAResourceProxy
XAResource
wrapper for Generic JMS Connector. This class
intercepts all calls to the actual XAResource object of the physical
JMS connection and performs corresponding book-keeping tasks in the
ManagedConnection representing the physical connection.
Field Summary |
---|
Fields inherited from interface javax.transaction.xa.XAResource |
---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
Constructor Summary | |
---|---|
SimpleXAResourceProxy(javax.transaction.xa.XAResource xar)
Constructor for XAResourceImpl |
Method Summary | |
---|---|
void |
commit(javax.transaction.xa.Xid xid,
boolean onePhase)
Commit the global transaction specified by xid. |
void |
end(javax.transaction.xa.Xid xid,
int flags)
Ends the work performed on behalf of a transaction branch. |
void |
forget(javax.transaction.xa.Xid xid)
Tell the resource manager to forget about a heuristically completed transaction branch. |
int |
getTransactionTimeout()
Obtain the current transaction timeout value set for this XAResource instance. |
java.lang.Object |
getWrappedObject()
Abstract method declaration. |
boolean |
isSameRM(javax.transaction.xa.XAResource xares)
This method is called to determine if the resource manager instance represented by the target object is the same as the resouce manager instance represented by the parameter xares. |
int |
prepare(javax.transaction.xa.Xid xid)
Ask the resource manager to prepare for a transaction commit of the transaction specified in xid. |
javax.transaction.xa.Xid[] |
recover(int flag)
Obtain a list of prepared transaction branches from a resource manager. |
void |
rollback(javax.transaction.xa.Xid xid)
Inform the resource manager to roll back work done on behalf of a transaction branch |
boolean |
setTransactionTimeout(int seconds)
Set the current transaction timeout value for this XAResource instance. |
void |
start(javax.transaction.xa.Xid xid,
int flags)
Start work on behalf of a transaction branch specified in xid. |
Methods inherited from class com.sun.genericra.AbstractXAResourceType |
---|
compare, getConnection, getRMPolicy, setConnection, setRMPolicy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleXAResourceProxy(javax.transaction.xa.XAResource xar)
xar
- XAResource
mc
- ManagedConnection
Method Detail |
---|
public void commit(javax.transaction.xa.Xid xid, boolean onePhase) throws javax.transaction.xa.XAException
xid
- A global transaction identifieronePhase
- If true, the resource manager should use a one-phase commit
protocol to commit the work done on behalf of xid.
javax.transaction.xa.XAException
public void end(javax.transaction.xa.Xid xid, int flags) throws javax.transaction.xa.XAException
xid
- A global transaction identifier that is the same as what was
used previously in the start method.flags
- One of TMSUCCESS, TMFAIL, or TMSUSPEND
javax.transaction.xa.XAException
public void forget(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
xid
- A global transaction identifier
javax.transaction.xa.XAException
public int getTransactionTimeout() throws javax.transaction.xa.XAException
XAResource
instance.
javax.transaction.xa.XAException
public boolean isSameRM(javax.transaction.xa.XAResource xares) throws javax.transaction.xa.XAException
xares
- An XAResource
object whose resource manager
instance is to be compared with the resource
javax.transaction.xa.XAException
public int prepare(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
xid
- A global transaction identifier
XAException
in the prepare method.
javax.transaction.xa.XAException
public javax.transaction.xa.Xid[] recover(int flag) throws javax.transaction.xa.XAException
flag
- One of TMSTARTRSCAN, TMENDRSCAN, TMNOFLAGS. TMNOFLAGS must be
used when no other flags are set in flags.
XAException
.
javax.transaction.xa.XAException
public void rollback(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
xid
- A global transaction identifier
javax.transaction.xa.XAException
public boolean setTransactionTimeout(int seconds) throws javax.transaction.xa.XAException
XAResource
instance.
seconds
- the transaction timeout value in seconds.
javax.transaction.xa.XAException
public void start(javax.transaction.xa.Xid xid, int flags) throws javax.transaction.xa.XAException
xid
- A global transaction identifier to be associated with the
resource
javax.transaction.xa.XAException
public java.lang.Object getWrappedObject()
AbstractXAResourceType
getWrappedObject
in interface XAResourceType
getWrappedObject
in class AbstractXAResourceType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |