com+ .net 中的替代方案?

发布于 2024-08-20 17:18:18 字数 216 浏览 4 评论 0原文

.net 中的 com+ 替代方案是什么?是 .net 远程处理还是 WCF 还是其他什么。


两个答案都是正确的,还有其他选择,即使我认为我们可以使用远程处理和Web服务来实现com+的功能。或者甚至也可以使用 com+ 的包装器。但是我正在谈论是否有一些东西可能会贬低 com+ ,就像在 java 中我们有 EJB 作为 com+ 的替代品,.net 中是否有与 com+ 类似的东西?

What is the com+ alternative in .net? Is it .net remoting or WCF or something else.


Both the answers are correct that there are alternatives even I think we can use remoting and webservice to achieve functionalities of com+. or even can use wrapper for com+ too.But I am talking about is there something that could depricate com+ , like in java we have EJB as an alternative of com+, is there something smilar in .net against com+ ?

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

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

发布评论

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

评论(2

几味少女 2024-08-27 17:18:18

这取决于您在 COM+ 替代品中寻找什么。正如 Ash 所说,企业服务允许您使用 .NET 创建 COM+ 组件。但对于一般的远程通信,请使用WCF。特别是,二进制绑定(netTcpBindingnetMsmqBinding 等)为企业内部通信提供了高性能通道。

It depends on what you're looking for in a COM+ replacement. As Ash says, Enterprise Services allow you to create COM+ components with .NET. But for general remote communications, use WCF. In particular, the binary bindings (netTcpBinding, netMsmqBinding, etc) provide a high-performance channel for intra-enterprise communication.

英雄似剑 2024-08-27 17:18:18

如果您需要 .NET 中的 COM+ 服务,企业服务System.EnterpriseServices 命名空间 中的类型提供广泛的 COM+ 支持对于托管代码。

一个(非常)简化的摘要:

  • 创建一个继承自 的新类ServicedComponent
  • 使用所需的属性(例如 ApplicationActivation、Transaction 等)对其进行装饰。
  • 使用强名称对其
  • 进行签名构建程序集
  • ,使用 regsvcs 向 COM+ 注册程序集。

If you require the services of COM+ in .NET, Enterprise Services and the types in the System.EnterpriseServices namespace provide extensive COM+ support for managed code.

A (very) simplified summary:

  • Create a new class that inherits from ServicedComponent
  • Decorate it with the required attributes such as ApplicationActivation, Transaction etc.
  • Sign it with a strong name
  • Build the assembly
  • Register the assembly with COM+, using regsvcs.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文