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);
如何将这些TransactionConfiguration
与点燃实例联系起来.. !!任何帮助..!提到.. http://apacheignite.gridgain.org/docs/transactions#integration-with-jta ....
答案 0 :(得分:1)
TransactionConfiguration
是IgniteConfiguration
的一部分,因此您可以在开始时提供它:
IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setTransactionConfiguration(transactionConfiguration);
Ignite ignite = Ignition.start(cfg);