教程集 www.jiaochengji.com
教程集 >  操作系统  >  windows  >  正文 .net中的事务处理(二)

.net中的事务处理(二)

发布时间:2019-12-16   编辑:jiaochengji.com
教程集为您提供.net中的事务处理(二)等资源,欢迎您收藏本站,我们将为您提供最新的.net中的事务处理(二)资源
MSMQ manual transactions
The .NET Framework supports MSMQ transactions in two different ways: manually (internally) by allowing multiple messages to be sent or received as part of a transaction and automatically (externally) by participating in Distributed Transaction Coordinator (DTC) transactions.
MSMQ manual transactions are supported through the MessageQueueTransaction class and are handled entirely inside the MSMQ engine. Please refer to Duncan Mackenzie's article, Reliable Messaging with MSMQ and .NET, for details.
Automatic Transactions
The .NET Framework relies on MTS/COM services to support automatic transactions. COM uses the Microsoft Distributed Transaction Coordinator (DTC) as a transaction manager and a transaction coordinator to run transactions in a distributed environment. This enables a .NET application to run a transaction that combines diverse activities across multiple resources such as inserting an order into a SQL Server database, writing a message to a Microsoft Message Queue (MSMQ) queue, sending an e-mail message, and retrieving data from an Oracle database.
By providing a programming model based on declarative transactions, COM makes it very simple for your application to run transactions that span heterogeneous resources. The caveat is that it pays a performance penalty due to DTC and COM interoperability overhead and there is no support for nested transactions.
ASP.NET pages, Web Service methods, and .NET classes can be marked to be transactional by setting a declarative transaction attribute.
ASP.NET

您可能感兴趣的文章:
.net中的事务处理(二)
在C#中使用COM 实现事务控制 wirte(原作) (本人转了)
在C#中使用COM 实现事务控制(转自CSDN,版权归人家所有,大家只有看的权力!)
.NET 开发AutoCAD2006指南(二)
ASP.NET的WebFrom组件LinkButton编程
.Net远程方法调用研究
ASP.NET -Web服务器控件
基于.Net Framework的N层分布式应用开发
命令行停止、启用、禁用某服务
asp.net用url重写URLReWriter实现任意二级域名

[关闭]
~ ~