📜  CORBA 和 DCOM 的区别

📅  最后修改于: 2021-09-15 01:23:05             🧑  作者: Mango

CORBA 和 DCOM 是用于处理分布式对象的两种中间件解决方案。这些解决方案提供了对分布式计算对象的更好控制,但问题是将哪种技术作为标准。让我们看看它们之间的详细比较。

1. 通用对象请求代理架构(CORBA):
Common Object Request Broker Architecture 是分布式对象的详细规范。它是由 OMG(对象管理组)引入的。该体系结构描述了一种具有名为 ORB(对象请求代理)的独立于平台的对象总线的语言。这些使对象透明地发出请求并接收来自远程对象的响应。这也支持处理并发和处理异常。

2.分布式组件对象模型(DCOM):
分布式组件对象模型是由 Microsoft 以其 Window NT 作为捆绑包引入的。 DCOM 与 Windows 中的 Internet Explorer 一起使用,预计它会吸引开发人员使用他们拥有的东西而不是购买。 DCOM 也是一种对象总线,有助于规范对象接口和调用支持分布式环境的动态对象导出。这支持共享 if 代码并要求使用对象接口声明共享代码。

CORBA 和 DCOM 之间的差异:

Basis of CORBA DCOM
Introduced by It was introduced by Object Management Group It was introduced by Microsoft
Focuses on This focus on Enterprise first and then Desktop This focus on Desktop first and then Enterprise
Platforms It is available on Unix, Windows and Macintosh. It is available with Windows NT and Full support with all versions of Windows, Unix and Macintosh
Object Implementation Various languages are supported as long as IDL can mapped to this language Many languages are supported as Java, COBOL, C++, and Delphi but specification is done with binary language
Client/Server Interface Interface at Client side is stub and Server side is skeleton Interface at Client side is proxy and Server side is stub
Object Activation and Location Here Object Adapter is used for activation and ORB is used for location Here SCM (Service Control Manager) is used for activation and location
Inheritance Supports inheritance with interface level when every interface is inherited from CORBA object. Supports multiple inheritance when object implements IUnknown interface.
Garbage Collection It does not provide general purpose Distributed Garbage Collection It provides general purpose Distributed Garbage Collection through pinging the wire.
Exception Handling The care is taken by Exception objects Exception are thrown out to HRESULT and for other exceptions ISupportErrorInfo interface has to be implemented
Availability It is available by multiple vendors It is available via single vendor