Search in sources :

Example 1 with TransactionSynchronizationRegistryProvider

use of org.jboss.as.clustering.infinispan.TransactionSynchronizationRegistryProvider in project wildfly by wildfly.

the class TransactionBuilder method getValue.

@Override
public TransactionConfiguration getValue() {
    TransactionManager tm = this.tm.getOptionalValue();
    this.builder.transactionManagerLookup((tm != null) ? new TransactionManagerProvider(tm) : null);
    TransactionSynchronizationRegistry tsr = this.tsr.getOptionalValue();
    this.builder.transactionSynchronizationRegistryLookup((tsr != null) ? new TransactionSynchronizationRegistryProvider(tsr) : null);
    return this.builder.create();
}
Also used : TransactionSynchronizationRegistryProvider(org.jboss.as.clustering.infinispan.TransactionSynchronizationRegistryProvider) DummyTransactionManager(org.infinispan.transaction.tm.DummyTransactionManager) TransactionManager(javax.transaction.TransactionManager) TransactionSynchronizationRegistry(javax.transaction.TransactionSynchronizationRegistry) TransactionManagerProvider(org.jboss.as.clustering.infinispan.TransactionManagerProvider)

Aggregations

TransactionManager (javax.transaction.TransactionManager)1 TransactionSynchronizationRegistry (javax.transaction.TransactionSynchronizationRegistry)1 DummyTransactionManager (org.infinispan.transaction.tm.DummyTransactionManager)1 TransactionManagerProvider (org.jboss.as.clustering.infinispan.TransactionManagerProvider)1 TransactionSynchronizationRegistryProvider (org.jboss.as.clustering.infinispan.TransactionSynchronizationRegistryProvider)1