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();
}
});
}
Aggregations