84 lines
5.6 KiB
HTML
84 lines
5.6 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>IIS and Component Services</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">
|
|
|
|
<H2><A NAME="_k2_iis_and_component_services"></A><SUP></SUP>IIS and Component Services</H2>
|
|
|
|
<P>IIS and Component Services work together to form a basic architecture for building Web applications. IIS uses the functionality provided by Component Services to:
|
|
|
|
<UL type=disc>
|
|
<LI>Isolate applications into distinct processes.</li>
|
|
|
|
<LI>Manage communication between COM components (including the ASP built-in objects).</li>
|
|
|
|
<LI>Coordinate transaction processing for transactional ASP applications.</li>
|
|
</UL>
|
|
|
|
<P><span class=le><B>Note </B></span>In IIS version 4.0, Microsoft Transaction Server (MTS) provided transaction support. In IIS 5.1 and Windows XP, Component Services provides all the transaction support of MTS, in addition to a number of other component development and deployment features.</P>
|
|
|
|
<P>IIS defines Web applications as a collection of resource files that are grouped into a logical namespace. By grouping resources into applications you gain the ability to share data throughout the namespace and to run the application in an isolated process.</P>
|
|
|
|
<P>Internally, IIS coordinates isolated applications through an object known as the Web Application Manager. This object includes a public interface (<B>IWAMAdmin</B>) that you can use to create programs for administering Web applications. When you run a Web application in an isolated process, IIS uses Component Services to coordinate concurrent access to resources and pass context information between COM components.</P>
|
|
|
|
<P>IIS uses the Component Services <B>ObjectContext</B> object to give COM components that are called by ASP access to the ASP built-in objects. For example, if you were building a COM component in Visual Basic that needed to access a form submission from an HTML file, you could use the following code:</P>
|
|
|
|
<PRE><CODE>Dim objObjectContext As ObjectContext
|
|
Dim vntIn As Variant
|
|
Set objObjectContext = GetObjectContext ()
|
|
vntIn = objObjectContext.Item("Request").Form("Field1")
|
|
</CODE></PRE>
|
|
|
|
<P>Component Services uses <B>ObjectContext</B> to maintain information about a particular instance of a COM component. When IIS compiles the ASP script, it calls Component Services to create an <B>ObjectContext</B> for tracking information about the ASP script. The <B>ObjectContext </B>includes an identity property that uniquely identifies instance of the ASP script. For example, if your ASP script creates instances of COM components that have been registered with Component Services, each of these objects will be associated with the ASP script's <B>ObjectContext</B>. Similarly, when you create a transactional ASP script with the <A HREF="/iishelp/iis/htm/asp/dire5t0u.htm">@TRANSACTION directive</A>, Component Services is notified and a new transaction is started. From that point onwards, Component Services will coordinate the updating of any resources that are under its control. Component Services guarantees the transaction's integrity by tracking any changes made to persisted resources.</P>
|
|
|
|
<P><span class=le><B>Note </B></span>In IIS version 4.0, transaction support was provided by Microsoft Transaction Server (MTS). For IIS 5.1 and Windows XP, Component Services provides all the transaction support of MTS, in addition to a number of other features.</P>
|
|
|
|
<P>For further information on isolating and managing applications, see <A HREF="/iishelp/iis/htm/asp/eadg7lpv.htm">Defining Application Boundaries</A>.</P>
|
|
|
|
<P>For further information on transaction processing, see <A HREF="/iishelp/iis/htm/asp/eadg8nlf.htm">Processing Transactions</A>, <A HREF="iiaptran.htm">Understanding Transactions</A>, and the Component Services documentation in the Platform SDK.</P>
|
|
<hr class="iis" size="1">
|
|
<p align="center"><em><a href="../../../common/colegal.htm">© 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
|
|
</BODY>
|
|
</HTML>
|