JTA和JTS

tech2024-12-22  18

 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。

U2FsdGVkX19mPq6Of6/0xIJ7AnqLBhocZNAGOpVXKOkqTymbpJIxNzv2mOdQ0xow 3O2kZVzBHC+JmAY9pZJjxzhMYGvQcwf736PNHgFQHPCM9qmY/ET8c5uGwdEQMWG6 UVYKk1PWR6v6ildOulUzYmX1vCsfmdEVnrHCv1IHvJ4yk8wKgC3b5YBO70fnDEHI hSTQl7Bhb6qbN+EIttM40M9hGKu21XJKGip4gGPeAeXqt4fQmT04XKll/YlnjDYE cstnqLJcYDNpSlJhumfVuw2mCVGt1O+U1Io+uoQVjcL8uZzIYJRQIQ1xua7Rj7en xBDARAo7M+t2NAMrqWmszLrXTt7GtyWD9mtjxCokh8uoyJS9a9l6uhdy/y5ajbpS 96lbLmMeZU3tr//C9oaVv0jVL8HGQz5GsvFTejz2lz2NyGbq5yFw/+l1N/5JXXXQ c5Bmt1P8Mja4+cXgilKoA/rIo5t+dtreDwJaoAgMpNu0m3ubmDMsDOglWcWMfgrm i4xfyggexHHZIA0t867P6YCQGjC4Wz0QBrzwoowlJB0SFL/kI+HCrZiaF8oyyrUY rrdJsCpYKkeCPYhpwa0EOfdcz0xvZZP78VreYqo2cvSdOnNegF/Gw9dzPm0WO3zw JqGjzty5R/nYjRAtBDfdqR1DBU9T8NFFq9MQJnehw8uA1LjlmzqyhBax0YYyyN44 YRczOZ1fipXkhr7yP3ZPc5vBxmAZ+i1EQ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