2025-04-27 07:49:33 -04:00

62 lines
4.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>Transaction Processing Technology</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
TempString = navigator.appVersion
if (navigator.appName == "Microsoft Internet Explorer"){
// Check to see if browser is Microsoft
if (TempString.indexOf ("4.") >= 0){
// Check to see if it is IE 4
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else {
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
}
}
else if (navigator.appName == "Netscape") {
// Check to see if browser is Netscape
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
//-->
</script>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_OnLoad()
Dim frmContents
On Error Resume Next
If Not Parent Is Nothing Then
Set frmContents = Parent.Contents
If Not frmContents Is Nothing Then
frmContents.Window.TOCSynch_Click
End If
End If
End Sub
//--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information">
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="MS-IT-LOC" Content="Internet Information Services">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1><A NAME="_k2_transaction_processing_technology"></A><SUP></SUP>Transaction Processing Technology</H1>
<P>The primary technology that allows Active Server Pages (ASP) to participate in a transaction is Component Services, which provides IIS with transaction services as well as an environment for hosting component instances. One of the benefits of this environment is the ability to create attributes for individual component instances. When IIS compiles script in an ASP page, a new instance of the IIS Web Application Manager (IISWAM) is created. IISWAM is a Component Object Model (COM) component that IIS uses to manage applications. If the script contains the @TRANSACTION directive, the instance of IISWAM will be declared within the transaction environment with an appropriate transaction property. For example, if you include @TRANSACTION = Required in your script, you are telling Component Services that the instance of IISWAM that it creates should be run in a transaction. If the script in an ASP page creates instances of any other components that have been registered with Component Services, Component Services will treat them as part of the same transaction. The following diagram illustrates the relationship between ASP and IISWAM.</P>
<P><IMG SRC="/iishelp/iis/htm/asp/art/iiswam.gif" ALT="IIS Web Application Manager" BORDER=0></P>
<P>Component Services provides transaction service to IIS through two different layers. At the lowest layer, Component Services interacts with the Microsoft<sup>&reg;</sup> Distributed Transaction Coordinator (MS DTC) to guarantee that transactions meet the ACID properties (Atomic, Consistent, Isolated, Durable) of a reliable transaction processing system. Component Services links component instances to MS DTC through two mechanisms: resource managers and resource dispensers.</P>
<P>A resource manager is a system service that manages durable data. Component Services supports resource managers that implement either the OLE Transactions protocol, such as Microsoft<sup>&reg;</sup> SQL Server 6.5, or the X/Open DTP XA standard. Resource dispensers are similar to resource managers in that they work with components to share state information. However, this information is not durable. For example, resource dispensers can manage pools of database connections for components that use standard open database connectivity (ODBC) interfaces. The ODBC 3.0 Driver Manager is the resource dispenser for ODBC connections.</P>
<P>For more information on Component Services transactions, see <A HREF="iiaptran.htm">Understanding Transactions</A>as well as the Component Services and Message Queuing documentation in the Platform SDK. To view samples of transactional scripting, see <b>ASP Samples</b> in the IIS section of the Platform SDK or at <a href="http://go.microsoft.com/fwlink/?LinkId=1753" target="_blank">MSDN Online - Internet Information Services</a>.</P>
<span style="display:none"><LAYER VISIBILITY=HIDE> (The following words are used by Search; they are not intended to be displayed on the page.) MSMQ </layer></span><hr class="iis" size="1">
<p align="center"><em><a href="../../../common/colegal.htm">&copy; 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
</BODY>
</HTML>