40

Java中的事务——全局事务与本地事务-Java架构的博客

 5 years ago
source link: http://blog.51cto.com/13732225/2132484
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
在上一篇文章中说到过,Java事务的类型有三种:JDBC事务、JTA(JavaTransactionAPI)事务、容器事务。这是从事务的实现角度区分的,本文从另外一个角度来再次区分一下Java中的事务。站在事务管理的角度,可以把Java中用到的事务分为本地事务和全局事务。本地事务不用事务的编程框架来管理事务,直接使用资源管理器来控制事务。典型的就是java.sql.Connection中的setA

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK