atomikos - 带有 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 吗?
解决方案
遗憾的是,在 Ehcache 3 中支持 Atomikos TM 需要编写一些胶水代码,而这还没有完成。您可以提出增强请求,或者更好的是:帮助我们添加该支持。所需内容记录在https://www.ehcache.org/documentation/3.8/xa.html#configuring-your-transaction-manager
推荐阅读
- python - SQL Server 数据库连接错误:“没有可用的语句句柄”错误:“
- javascript - Vscode 为工作区中的所有功能“转到定义”
- reactjs - 从 React 调用受 Azure AD 保护的 API
- mysql - MySql 和 RDS 连接
- python - 在从属单元格中设置值后不重新计算单元格
- c - 如何从现有文件创建格式化的 .txt 文件?
- matplotlib - 通知现有 Axes 它是 3D Axes
- optimization - CP-Sat 中 NumConflicts 的确切含义是什么?
- django - 致命:角色连接过多:Heroku/django,仅在使用 ASGI 时
- android - 使用kotlin检测android中的来电不起作用