什么是好的开源 Java SE JTA TransactionManager 实现?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/777636/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is a good open source Java SE JTA TransactionManager implementation?
提问by Chris R
Basically, what it says on the tin; I need a JTA implementation useable in a Java SE application, ideally one that doesn't carry too much of a framework burden with it.
基本上,它在罐头上写着什么;我需要一个可在 Java SE 应用程序中使用的 JTA 实现,理想情况下,它不会带来太多的框架负担。
采纳答案by erickson
I recommend Bitronix. Before using any other transaction manager, I recommend thorough testing. Tests like killing power to various machines during each phase of the transaction. You want transactionality to protect you when failures occur. It is surprising how many transaction managers have failed to correctly implement recovery.
我推荐Bitronix。在使用任何其他事务管理器之前,我建议进行彻底的测试。测试例如在交易的每个阶段杀死各种机器的电源。您希望事务性在发生故障时保护您。令人惊讶的是,有多少事务管理器未能正确实现恢复。
Bitronix does need JNDI, which is typically provided for you in a Java EE container, but they include a simple embedded implementation that will support Bitronix in a Java SE application.
Bitronix 确实需要 JNDI,它通常在 Java EE 容器中为您提供,但它们包含一个简单的嵌入式实现,将在 Java SE 应用程序中支持 Bitronix。
回答by kazanaki
From its webpage:
从它的网页:
"With over 20 years of expertise in the area of transaction processing, JBoss Transactions(JBossTS) is the premier open source transaction manager.
“凭借在事务处理领域 20 多年的专业知识, JBoss Transactions(JBossTS) 是首屈一指的开源事务管理器。
It can be deployed within a range of application servers, containers or run stand-alone. Over the past 20 years it has been used extensively within industry and to drive standards including the OMG and Web Services."
它可以部署在一系列应用服务器、容器中或独立运行。在过去的 20 年里,它在行业内得到了广泛的使用,并推动了包括 OMG 和 Web 服务在内的标准。”
回答by Guy Pardon
Try Atomikos TransactionsEssentials.
试试Atomikos TransactionsEssentials。
Atomikos is the inventor of "Java EE without Application Server", so if any open source JTA/XA does well in Java SE then it must be TransactionsEssentials: it was designed for Java SE right from the start, and includes JDBC and JMS connectors/pools so you don't need any application server functionality.
Atomikos 是“没有应用服务器的 Java EE”的发明者,所以如果任何开源 JTA/XA 在 Java SE 中表现良好,那么它一定是 TransactionsEssentials:它从一开始就是为 Java SE 设计的,包括 JDBC 和 JMS 连接器/池,因此您不需要任何应用程序服务器功能。
Because of its Java SE focus, TransactionsEssentials also has very few dependencies on third-party jars or platforms.
由于其 Java SE 重点,TransactionsEssentials 对第三方 jar 或平台的依赖也很少。
Best
最好的事物
Guy
盖伊
Disclaimer: I work for Atomikos, but still...
免责声明:我为 Atomikos 工作,但仍然......
回答by Dmitry Peysakhov
Quote from http://jotm.ow2.org/
JOTM is an open source Transaction Manager implemented in Java. It supports several transaction models and specifications providing transaction support for clients using a wide range of middleware platforms (J2EE, CORBA, Web Services, OSGi). JOTM is hosted by the OW2 consortium. The license used by JOTM is BSD-style License. This implementation is fully functional and mature since it has been used for several years in the JOnAS application server project.
JOTM 是一个用 Java 实现的开源事务管理器。它支持多种事务模型和规范,为使用各种中间件平台(J2EE、CORBA、Web 服务、OSGi)的客户端提供事务支持。JOTM 由 OW2 联盟主办。JOTM 使用的许可证是 BSD 风格的许可证。由于在 JOnAS 应用程序服务器项目中使用了几年,因此该实现功能齐全且成熟。
回答by Shantanu Kumar
You can try SimpleJTA: -- http://simplejta.sourceforge.net/
你可以试试 SimpleJTA: -- http://simplejta.sourceforge.net/