use of org.jboss.as.test.integration.transactions.TestXAResource in project wildfly by wildfly.
the class TransactionInflowMdb method enlistXAResource.
protected void enlistXAResource() {
log.trace(this.getClass().getSimpleName() + ".enlistXAResource()");
try {
TestXAResource testXAResource = new TestXAResource(checker);
transactionManager.getTransaction().enlistResource(testXAResource);
} catch (Exception e) {
log.error("Could not enlist TestXAResourceUnique", e);
throw new IllegalStateException("Could not enlist TestXAResourceUnique", e);
}
}
Aggregations