首页 > 解决方案 > 带有 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 吗?

标签: atomikosehcache-3

解决方案


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


推荐阅读