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.
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 TransactionAPI (JTA) 主要包含几部分】相关文章
1. Java TransactionAPI (JTA) 主要包含几部分
2. 若通过ObjectOutputStream向一个文件中多次以追加方式写入object,为什么用ObjectInputStream读取这些object时会产生StreamCorruptedExcepti
3. How to detect and cleanup pending transactions in Oracle
6. const char*, char const*, char*const的区别是什么
7. 有abstract方法的类一定要用abstract修饰吗
8. Can a struct inherit from another struct? (结构体能继承结构体吗)
9. 声明struct x1 { . . . }; 和typedef struct { . . . }x2;有什么不同
10. String s = new String(“xyz”);创建了几个String Object?
本文来源:https://www.mianshiwenti.com/a12248.html
进入下载页面
上一篇:JMS中Topic和Queue有什么区别
下一篇:JDK安装目录下有哪些内容