Search in sources :

Example 1 with TestXAResource

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);
    }
}
Also used : TestXAResource(org.jboss.as.test.integration.transactions.TestXAResource) JMSException(javax.jms.JMSException) SystemException(javax.transaction.SystemException)

Aggregations

JMSException (javax.jms.JMSException)1 SystemException (javax.transaction.SystemException)1 TestXAResource (org.jboss.as.test.integration.transactions.TestXAResource)1