搜索工作 |
搜索工作 公司点评 查工资 看趋势
微信

使用微信服务,更方便

职友集>Java面试题 > Java面试题:Java TransactionAPI (JTA) 主要包含几部分?

Java面试题:Java TransactionAPI (JTA) 主要包含几部分?

2015-05-05 06:30:02 阅读( 30 )

2953人 收藏本页

标签:Java面试题

JTA主要包含三部分, UserTransaction, Transaction Manager, XAResource

UserTransaction: The javax.transaction.UserTransaction API allows the application to control the transaction boundaries programmatically. In simple words, this high level API allows to mark the beginning and the end of a global (distributed) transaction.
Transaction Manager: The javax.transaction.TransactionManager API is designed as interface for the application server. The application server is able to specify transaction boundaries in charge of the managed application with this high level API.
XAResource: The javax.transaction.xa.XAResource API is a Java implementation of the industry standard XA Interface based on the X/Open CAE specification. This is the low level API between transaction manager and the database. This interface will allow you to speak 2PC with directly the different databases involved in a distributed transaction.

来自IT公司面试手册

下一篇:JMS中Topic和Queue有什么区别?

上一篇:JAVA中运算符的分类及举例

亲~ 如果您有更好的答案 可在评论区发表您独到的见解。

您想查看更多的信息: 面试题