What is a good open source Java SE JTA Transaction

2019-01-22 03:04发布

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.

5条回答
家丑人穷心不美
2楼-- · 2019-01-22 03:17

Try 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.

Because of its Java SE focus, TransactionsEssentials also has very few dependencies on third-party jars or platforms.

Best

Guy

Disclaimer: I work for Atomikos, but still...

查看更多
3楼-- · 2019-01-22 03:19

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.

查看更多
太酷不给撩
4楼-- · 2019-01-22 03:25

You can try SimpleJTA: -- http://simplejta.sourceforge.net/

查看更多
Luminary・发光体
5楼-- · 2019-01-22 03:26

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.

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."

查看更多
\"骚年 ilove
6楼-- · 2019-01-22 03:34

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 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.

查看更多
登录 后发表回答