Deploying and Administering COM+ Applications
----jenry
一、 Deployment Requirements
1. Server Requirements
A COM+ application must run on a server. Therefore, when deploying a COM+ application, you must first consider how to package the application so that it installs and runs correctly on a server. There are several techniques, including XCOPY deployment, using the Regsvcs.exe tool, programmatic deployment,and application export and replication.
The following software must be installed on the server to ensure a successful deployment:
l Com+ running on Microsoft Windows 2000 or Microsoft Windows XP
l The .Net common language runtime
l Any additional software required by the application
2. Client Requirements
Clients create serviced components and call methods to perform work. You must configure client applications to access the correct server.
The following techniques make a COM+ application available to a client:
l You can make the COM+ application available to the client over the Internet or intranet through XML Web services.
l You can create an application proxy that configures the client appropriately by using the Component Services administrative tool.
二、 Dynamic Registeration
1. Dynamic registration
l Configure the component using EnterpriseServices attributes and build the assembly
l Deploy the assembly using XCOPY
l When a serviced component is first used, the assembly and type library are registered, and the COM+ catalog is configured from the attributes
2. Limitations
l No install-time feedback on Regsvcs.exe errors
l Dynamic registration does not install application assemblies to GAC
l Application user must be a member of the Administrators group
l Not all COM+ catalog properties can be configured with attributes Example: Running an application as a Windows NT–based service
三、 Use the Regsvcs.exe Tool
四、 Use the RegistrationHelper Class
五、 How to Export and Install Applications
The Component Services tool creates an installation package for a COM+ application and application proxies
The export creates an .msi file which contains:
COM registration info
l Application attributes
l Assemblies and type libraries
l Use the .msi file created in the export process
六、How to Use the Component Services Tool to Deploy Proxies
l Proxies allow you to access a COM+ application from another computer
l Client contains a subset of attributes of the server application called a proxy
l Proxy/stub DLLS, type libraries
l You can use the Component services tool to create and install proxies
l Proxies can be installed on versions of Windows that
l do not include COM+ services
六、 How to Expose a COM+ Application as an XML Web Service
COM+ version 1.5 allows you to expose a COM+ application as an XML Web Service.
l Doing this allows any type of client to call a COM+application through SOAP
l Use Component Services administrative tool to createa SOAP VRoot
l Create the client proxy by using Visual Studio .NET,Wsdl.exe, or SoapSuds.exe