JTA GitHub读取以下内容以确认@Alan在
comment中已经指出的内容 –
This standalone release of Java(TM) Java Transaction API (JTA), uses a
Java Platform Module System “automatic” module name of
java.transaction, to match the module name used in JDK 9. A future
version will include full module metadata. Moreover
javax.transaction.xa package is now owned by Java SE.
您可以使用Maven的版本(例如)使用: –
javax.transaction
javax.transaction-api
1.3
… The javax.transaction.xa package supports XA transactions in JDBC.
This 07004 is co-located with JDBC in the java.sql module in
Java SE 9. Because the java.sql module is not upgradeable, it is not
possible for a standalone version of JTA to override the Java SE
version of the XA package
并进一步说明解决方案的可扩展性
…For ease of maintenance, the XA package in Java SE may be moved to a
different non-upgradeable module in the future, but as an
architectural matter it will remain in Java SE alongside JDBC for the
long term…
并按计划
In early 2018, JTA 1.3 will be defined to consist of just the CORBA interop package; the JAR file will be updated accordingly.