简体   繁体   English

我应该选择哪种方法在单独的进程(COM +或DCOM)中托管进程内服务器?

[英]Which do I choose for hosting my in-proc server in a separate process - COM+ or DCOM?

I need to shield a 64-bit COM component consumer from the 32-bit native C++ ATL in-proc COM component. 我需要从32位本机C ++ ATL进程内COM组件中屏蔽64位COM组件使用者。

Seems like both COM+ and DCOM can host my in-proc component in a separate process and do the marshalling so that both me and the consumer application don't care of it and I even don't have to change my in-proc component at all. 好像COM +和DCOM都可以在一个单独的进程中托管我的In-proc组件并进行编组,这样我和使用者应用程序都不必理会它,甚至不必在该位置更改我的In-proc组件。所有。 I tried both - both seem to "just work" after some initial use of the hammer for setting up the COM+ application or the DCOM application respectively. 我尝试了两种方法-分别在最初使用锤子分别设置COM +应用程序或DCOM应用程序后,两者似乎都“正常工作”。

I need a solution that would be the best in terms of deployment and problems diagnosing at the customers'. 我需要一个在部署和客户问题诊断方面最好的解决方案。 Which do I choose - COM+ or DCOM? 我该选择哪个-COM +或DCOM?

They're both working, so the choice doesn't seem that important. 他们都工作,所以选择不似乎重要的呢。 I would choose COM+ because: 我之所以选择COM +,是因为:

  • COM+ is newer than DCOM (and both are mature) and people sometimes use it from .NET as Enterprise Services. COM +比DCOM更新(并且两者都很成熟),人们有时将.NET作为企业服务使用。
  • With COM+ you can create your own "applicaton" to host your components. 使用COM +,您可以创建自己的“应用程序”来托管组件。 That may make your components easier to find and maintain in the COM+ explorer. 这样可以使您的组件更易于在COM +资源管理器中查找和维护。
  • It seems like you don't need the distributed part of DCOM. 似乎您不需要DCOM的分布式部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将COM服务器添加到COM +服务器应用程序后,无法再在过程中实例化它-为什么? - Once I add a COM server into a COM+ server application I can no longer instantiate it in-proc - why? 是否可以禁止将进程内组件放入COM +? - Is it possible to prohibit putting my in-proc component into COM+? 我如何配置DCOM将我的DLL加载到一个单独的进程? - How exactly do I config DCOM to load my DLL into a separate process? 如何授予对我的 COM+ 应用程序的访问权限? - How do I grant access to my COM+ application? 确定COM是In-Proc还是LocalServer - Determine whether a COM is a In-Proc or LocalServer 通过64位应用程序使用32位In-proc COM服务器的简单方法是什么? - What are easy ways to use a 32-bit in-proc COM server from 64-bit applications? 我可以设置一个COM +应用程序来创建“一次性”外发服务器吗? - Can I set up a COM+ application to create “single-use” out-proc servers? 注册外部 COM 服务器时是否需要指定“ThreadingModel”? - Do I need to specify “ThreadingModel” when registering an out-proc COM server? 是否有任何理由不在COM +应用程序中托管COM服务器? - Are there any reasons not to host a COM server in a COM+ application? 如何获得com +应用程序的所有com +组件的列表? - How can I get a list of all the com+ components of a com+ application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM