当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: MSMQ manual transactions
 

 

 ·使用标准对话框(转)    »显示摘要«
    摘要: 模式表单或对话框需要用户能够继续与应用程序其他窗口在交互时关闭窗口.你可以通过三中不同方式创建它们. 1.msgbox .net framework 仍然提供了visual basic开发者使用的传统msgbox 函数.你可以像以前版本同样的语法使用它,除了可以通过msgboxstyle 枚举定义显示类型以及msgboxresult 枚举产生用户决定结果.下面的例子展示了怎样使用......
 ·beta2的screensaver    »显示摘要«
    摘要: namespace screen_saver { using system; using system.drawing; using system.collections; using system.componentmodel; //using system.winforms; using system.windows.forms; using system.dat......


.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 mackenzies 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 <@ page transaction="required"> asp.net web service <%@ webservice language="vb" class="class1" %> <%@ assembly name="system.enterpriseservices" %> … public class class1    inherits webservice    <webmethod(transactionoption := transactionoption.requiresnew)> _ publ
...   下一页
    摘要:   作为一个windows开发者, 你应毫不犹豫成为microsoft新的.net的倡导者。在规范的客户端应用程序成为流行的同时,越来越多的组织正趋向于简单的,基于浏览器的可以通过网络交互(通常是internet)的应用程序。这就意味着编程正在从独立的应用程序模式向更丰富的面向组件的模块化应用程序转变。   .net平台正是为推动这一运动——特别是被称为windows forms......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE