开发者

Easiest way to expose COM+ via web service

开发者 https://www.devze.com 2022-12-21 10:16 出处:网络
I have a COM+ o开发者_运维知识库bject which is not stateless (it takes a while to initialize, and maintains large objects in RAM). I want to expose its functionality to other applications / hosts via

I have a COM+ o开发者_运维知识库bject which is not stateless (it takes a while to initialize, and maintains large objects in RAM). I want to expose its functionality to other applications / hosts via web service or TCP/IP.

I saw that COM+ Component Services have a built-in capability to create SOAP wrappers and attach them to IIS. However, it looks like it doesn't use the meta-data from the COM+ objects, and I am not sure whether I have control over the creation and destruction of the objects.


You should totally forget the idea of using the built-in integration capability. It's simply a bad idea.

Instead, create yourself a WCF service to expose the object. The WCF service can be stateful if necessary, such that multiple calls to the service from the same client will all go to the same instance of your COM+ object (assuming it supports multiple instances).

Is your object transactional? You can expose this through WCF, but not through the built-in "integration" capability.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号