面试啦 - 提供专业面试问题及答案、面试技巧、助您成功面试!
您的当前位置:首页 > 面试题库 > IT面试题 > JAVA面试题 > 正文

Java TransactionAPI (JTA) 主要包含几部分

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.
词条:java面试题 java工程师面试题
上一篇:String这个类型的class为何定义成final? 下一篇:JMS中Topic和Queue有什么区别
与该文相关的文章

温馨提示:如果您对面试网有任何建议,请通过网站联系邮箱向我们反馈,感谢各位的建议与支持!