apache在现有的jta事务中点燃1.6.0 xa资源

时间:2016-06-30 15:04:31

标签: java transactions jta xa ignite

 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 ....

1 个答案:

答案 0 :(得分:1)

TransactionConfigurationIgniteConfiguration的一部分,因此您可以在开始时提供它:

IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setTransactionConfiguration(transactionConfiguration);
Ignite ignite = Ignition.start(cfg);