JTA和JTS

xmh_sxh_1314發表於2020-10-04

在這裡插入圖片描述

JTA,即Java Transaction API,JTA允許應用程式執行分散式事務處理–在兩個或多個網路計算機資源上訪問並且更新資料。JDBC驅動程式的JTA支援極大地增強了資料訪問能力。

JTA事務比JDBC事務更強大。一個JTA事務可以有多個參與者,而一個JDBC事務則被限定在一個單一的資料庫連線。下列任一個Java平臺的元件都可以參與到一個JTA事務中:JDBC連線、JDO PersistenceManager 物件、JMS 佇列、JMS 主題、企業JavaBeans(EJB)、一個用J2EE Connector Architecture 規範編譯的資源分配器。

JTS 只是一個元件事務監視器(有時也稱為 物件事務監視器(object transaction monitor)),或稱為 CTM。

U2FsdGVkX18DWSVBI7kbz+p07CyzQrZPGWSwUdRRM8wPhn9s2i+QkIJZDJWhQqg0
durMW22FeVbZ9N42Go4FnkcDnFIR58GaCd0zpU4rmpTD5yXapIV8YTelafJzFvuh
e+Qmh4LJdv27Gu524x+nQ1mEyolEoy5sQ1C3LhI8oJQbd6xhngop+Y7LAu1VF/2g
P4OXyc5HFMqgCqi8OjTZ2NOa/USCbuSYWfcBKwAG7PQTKWzwZrdUdmhWt2wfMT+1
P/9nVREqPzTa+gQ4QozXF+0KAdyK+R1ioqba6HOy2gNBWcZCNTPdHabfOlgrsar5
6a0Xwl2Jz/qHBtKjyqg7SwnTw0Qqz9ZPNAjWQ1hV0bk6seokGOjNKpK0KLwLm7Tz
mDXNQv9lQk5S5hbwyC91AsGl6+iVULp3+f3/Rb93xWGEn6nBLLLya5q15fDPukTD
2v23jaA5D/jc6phYm1i6V4lgsDiZeUqGP49Fh7SJw2FU2QEXOQ6M0+Ece3ATljVl
zWeTasDP8glW/sWAh4rTPJSOxUZOzpQSUM3wv3FpoXTnNN4h0d1GXK7fVWS1t3Uj
JrkfkDrarNbhfydCgbWYaTuqSY3syoH0fq1z1MFNjPgKTjZza8HghAnDIqGsyjz6
CHqRfJxRHksW7niTFbBSuGUpkmJ5Ket0+tyypzKgOoUNqys7DqDfufR7MR66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