use of org.apache.activemq.command.XATransactionId in project activemq-artemis by apache.
the class ActiveMQXAConnectionFactoryTest method assertTransactionGoneFromBroker.
private void assertTransactionGoneFromBroker(Xid tid) throws Exception {
BrokerService broker = BrokerRegistry.getInstance().lookup("localhost");
TransactionBroker transactionBroker = (TransactionBroker) broker.getBroker().getAdaptor(TransactionBroker.class);
try {
transactionBroker.getTransaction(null, new XATransactionId(tid), false);
fail("expected exception on tx not found");
} catch (XAException expectedOnNotFound) {
}
}
use of org.apache.activemq.command.XATransactionId in project activemq-artemis by apache.
the class XATransactionIdTest method createObject.
@Override
public Object createObject() throws Exception {
XATransactionId info = new XATransactionId();
populateObject(info);
return info;
}
use of org.apache.activemq.command.XATransactionId in project activemq-artemis by apache.
the class XATransactionIdTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
XATransactionId info = (XATransactionId) object;
info.setFormatId(1);
info.setGlobalTransactionId("GlobalTransactionId:1".getBytes());
info.setBranchQualifier("BranchQualifier:2".getBytes());
}
use of org.apache.activemq.command.XATransactionId in project activemq-artemis by apache.
the class XATransactionIdTest method createObject.
@Override
public Object createObject() throws Exception {
XATransactionId info = new XATransactionId();
populateObject(info);
return info;
}
use of org.apache.activemq.command.XATransactionId in project activemq-artemis by apache.
the class XATransactionIdTest method createObject.
@Override
public Object createObject() throws Exception {
XATransactionId info = new XATransactionId();
populateObject(info);
return info;
}
Aggregations