公开 COM+ 的最简单方法通过网络服务

发布于 2024-08-22 18:08:14 字数 208 浏览 2 评论 0原文

我有一个无状态的 COM+ 对象(需要一段时间才能初始化,并在 RAM 中维护大对象)。我想通过 Web 服务或 TCP/IP 将其功能公开给其他应用程序/主机。

我看到 COM+ 组件服务具有创建 SOAP 包装器并将它们附加到 IIS 的内置功能。然而,它看起来并没有使用来自 COM+ 对象的元数据,而且我不确定我是否可以控制对象的创建和销毁。

I have a COM+ object 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沐歌 2024-08-29 18:08:15

您应该完全忘记使用内置集成功能的想法。这简直是​​个坏主意。

相反,您自己创建一个 WCF 服务来公开该对象。如果需要,WCF 服务可以是有状态的,这样来自同一客户端的对服务的多次调用都将转到 COM+ 对象的同一个实例(假设它支持多个实例)。

你的对象是事务性的吗?您可以通过 WCF 公开这一点,但不能通过内置的“集成”功能公开。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文