|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jms.recovery.XAResourceWrapper
public class XAResourceWrapper
XAResourceWrapper.
| 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 | |
|---|---|
XAResourceWrapper()
|
|
| Method Summary | |
|---|---|
protected XAException |
check(XAException e)
Check whether an XAException is fatal. |
void |
close()
Close the connection |
void |
commit(Xid xid,
boolean onePhase)
|
protected XAResource |
connect()
Connect to the server if not already done so |
void |
end(Xid xid,
int flags)
|
protected void |
finalize()
|
void |
forget(Xid xid)
|
protected javax.jms.XAConnectionFactory |
getConnectionFactory()
Get the XAConnectionFactory |
XAResource |
getDelegate()
Get the delegate XAResource |
String |
getProviderName()
Get the providerName. |
int |
getTransactionTimeout()
|
boolean |
isSameRM(XAResource xaRes)
|
void |
onException(javax.jms.JMSException exception)
|
int |
prepare(Xid xid)
|
Xid[] |
recover(int flag)
|
void |
rollback(Xid xid)
|
void |
setProviderName(String providerName)
Set the providerName. |
boolean |
setTransactionTimeout(int seconds)
|
void |
start(Xid xid,
int flags)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XAResourceWrapper()
| Method Detail |
|---|
public String getProviderName()
public void setProviderName(String providerName)
providerName - the providerName.
public Xid[] recover(int flag)
throws XAException
recover 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 XAResourceXAException
public void forget(Xid xid)
throws XAException
forget in interface XAResourceXAException
public boolean isSameRM(XAResource xaRes)
throws XAException
isSameRM in interface XAResourceXAException
public int prepare(Xid xid)
throws XAException
prepare in interface XAResourceXAException
public void start(Xid xid,
int flags)
throws XAException
start in interface XAResourceXAException
public void end(Xid xid,
int flags)
throws XAException
end in interface XAResourceXAException
public int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAException
public boolean setTransactionTimeout(int seconds)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionpublic void onException(javax.jms.JMSException exception)
onException in interface javax.jms.ExceptionListener
public XAResource getDelegate()
throws XAException
XAException - for any problem
protected XAResource connect()
throws Exception
Exception - for any problem
protected javax.jms.XAConnectionFactory getConnectionFactory()
throws Exception
Exception - for any problempublic void close()
protected XAException check(XAException e)
throws XAException
e - the xa exception
XAException - always
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||