具有Atomikos事务管理器的EhCache 3

时间:2018-12-28 17:10:58

标签: atomikos ehcache-3

现在,我将EhCache 2与Atomkios一起用作JTA提供程序。我可以如下配置事务管理器。

   FactoryConfiguration config = new FactoryConfiguration();
        config.setProperties("jndi=java:comp/UserTransaction");
        config.setPropertySeparator("=");
        config.setClass("net.sf.ehcache.transaction.manager.DefaultTransactionManagerLookup");
        ehCacheConfig.transactionManagerLookup(config);

现在,我计划迁移到EHCache 3,但是我发现Bitronix仅支持JTA,因为它是开箱即用的。 http://www.ehcache.org/documentation/3.0/xa.html

任何人都可以通过EhCache 3帮助配置Atomikos吗?

1 个答案:

答案 0 :(得分:0)

遗憾的是,要在Ehcache 3中支持Atomikos TM可能需要编写一些粘合代码,而这还没有完成。您可以提出一个增强请求,或者更好:帮助我们添加该支持。 https://www.ehcache.org/documentation/3.8/xa.html#configuring-your-transaction-manager

中记录了所需内容
相关问题