public class ActiveMQXAResourceWrapperImpl extends Object implements ActiveMQXAResourceWrapper
ACTIVEMQ_JNDI_NAME, ACTIVEMQ_NODE_ID, ACTIVEMQ_PRODUCT_NAME, ACTIVEMQ_PRODUCT_VERSION
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
Constructor and Description |
---|
ActiveMQXAResourceWrapperImpl(XAResource xaResource,
Map<String,Object> properties)
Creates a new XAResourceWrapper.
|
Modifier and Type | Method and Description |
---|---|
void |
commit(Xid xid,
boolean b) |
void |
end(Xid xid,
int i) |
void |
forget(Xid xid) |
String |
getJndiName() |
String |
getProductName() |
String |
getProductVersion() |
XAResource |
getResource() |
int |
getTransactionTimeout() |
boolean |
isSameRM(XAResource xaResource) |
int |
prepare(Xid xid) |
Xid[] |
recover(int i) |
void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int i) |
void |
start(Xid xid,
int i) |
public ActiveMQXAResourceWrapperImpl(XAResource xaResource, Map<String,Object> properties)
xaResource
- properties
- public XAResource getResource()
public String getProductName()
public String getProductVersion()
public String getJndiName()
public void commit(Xid xid, boolean b) throws XAException
commit
in interface XAResource
XAException
public void end(Xid xid, int i) throws XAException
end
in interface XAResource
XAException
public void forget(Xid xid) throws XAException
forget
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean isSameRM(XAResource xaResource) throws XAException
isSameRM
in interface XAResource
XAException
public int prepare(Xid xid) throws XAException
prepare
in interface XAResource
XAException
public Xid[] recover(int i) throws XAException
recover
in interface XAResource
XAException
public void rollback(Xid xid) throws XAException
rollback
in interface XAResource
XAException
public boolean setTransactionTimeout(int i) throws XAException
setTransactionTimeout
in interface XAResource
XAException
public void start(Xid xid, int i) throws XAException
start
in interface XAResource
XAException
Copyright © 2021 JBoss by Red Hat. All rights reserved.