Deploying and Administering COM+ Applications

7 篇文章 0 订阅
4 篇文章 0 订阅

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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值