现在,我将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吗?
答案 0 :(得分:0)
遗憾的是,要在Ehcache 3中支持Atomikos TM可能需要编写一些粘合代码,而这还没有完成。您可以提出一个增强请求,或者更好:帮助我们添加该支持。 https://www.ehcache.org/documentation/3.8/xa.html#configuring-your-transaction-manager
中记录了所需内容