Search in sources :

Example 1 with TransactionManager

use of org.objectweb.transaction.jta.TransactionManager in project ignite by apache.

the class GridPartitionedCacheJtaFactorySelfTest method configureJta.

/** {@inheritDoc} */
@Override
protected void configureJta(IgniteConfiguration cfg) {
    TransactionConfiguration txCfg = cfg.getTransactionConfiguration();
    txCfg.setTxManagerFactory(new Factory<TransactionManager>() {

        private static final long serialVersionUID = 0L;

        @Override
        public TransactionManager create() {
            return jotm.getTransactionManager();
        }
    });
}
Also used : TransactionConfiguration(org.apache.ignite.configuration.TransactionConfiguration) TransactionManager(org.objectweb.transaction.jta.TransactionManager)

Aggregations

TransactionConfiguration (org.apache.ignite.configuration.TransactionConfiguration)1 TransactionManager (org.objectweb.transaction.jta.TransactionManager)1