use of org.jboss.jbossts.txbridge.tests.inbound.utility.TestXAResource in project narayana by jbosstm.
the class TestServiceImpl method enlistXAResource.
@WebMethod(exclude = true)
public void enlistXAResource(int count) {
TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager();
try {
for (int i = 0; i < count; i++) {
TestXAResource testXAResource = new TestXAResource();
tm.getTransaction().enlistResource(testXAResource);
}
} catch (Exception e) {
log.error("could not enlist", e);
}
}
Aggregations