本文介绍了apache ignite 1.6.0 xa资源在现有的jta事务中征募的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Ignite ignite = Ignition.start();
How to make this ignite instance fall into existing jta transaction..
Tried..
TransactionConfiguration transactionConfiguration = new TransactionConfiguration();
Factory factory = FactoryBuilder.factoryOf(userTransactionManager);
transactionConfiguration.setTxManagerFactory(factory);
transactionConfiguration.setUseJtaSynchronization(true);
如何使用ignite实例将这些TransactionConfiguration
关联起来!任何帮助..!引用了.. http://apacheignite.gridgain.org/docs/transactions#integration- with-jta ....
How to corellate these TransactionConfiguration
with the instance of ignite..!! Any help..! Referred .. http://apacheignite.gridgain.org/docs/transactions#integration-with-jta ....
推荐答案
TransactionConfiguration
是IgniteConfiguration
的一部分,因此您可以在开始时提供它:
TransactionConfiguration
is the part of IgniteConfiguration
, so you can provide it during start:
IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setTransactionConfiguration(transactionConfiguration);
Ignite ignite = Ignition.start(cfg);
这篇关于apache ignite 1.6.0 xa资源在现有的jta事务中征募的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!