问题
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);
How to corellate these TransactionConfiguration
with the instance of ignite..!! Any help..! Referred .. http://apacheignite.gridgain.org/docs/transactions#integration-with-jta ....
回答1:
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);
来源:https://stackoverflow.com/questions/38126971/apache-ignite-1-6-0-xa-resource-enlist-in-existing-jta-transaction