Thursday, March 15, 2001 by Ish Singh
Introduction:
COM is sometimes referenced as Common Object Model but Microsoft officially calls it Component Object Model. Microsoft also developed DCOM as an extension of COM. DCOM was designed with distributed computing in perspective. CORBA stands for Common Object Request Broker Architecture and developed by Object Management Group (OMG). COM / DCOM and CORBA among others are object-oriented approaches for the use and development of software components. They are the competing architectures for application development in the client / server world. These architectures support distributed computing and provide support for interoperability and limited portability. Distributed computing technologies are necessary for creating flexible client / server systems. These distributed objects can exist anywhere on the system as they encapsulate the data and business logic within themselves. As heterogeneous systems are getting more and more popular, distributed objects are Also Getting Popular, As They Are Really Good at Connecting The Heterogeneous Systems.
CORBA and DCOM are both designed for client / server style communication among distributed objects. In both technologies, a client invokes a method that is implemented by a remote object that acts as a server. The interface for such an object providing the service is defined in an Interface Definition Language (IDL). This keeps the object implementations hidden from the client. both CORBA and COM communications are implemented like RPC and methods of remote objects are invoked on reference. The support for data types in both these technologies is limited to a Few Data Types That Can Be Mapped to Multiple Programming Languages.
Origin:
COM / DCOM:.. Its predecessor OLE (Object Linking and Embedding) was originally used for linking documents on Microsoft Win 3.1 OS COM was developed to integrate components dynamically within a single address space COM was designed to provide support of dynamic use of multiple vendor binary components in one single application. Component interactions are based on OLE2 interfaces and protocols. Although COM uses OLE2 interfaces and protocols, it is worthy to know that COM is not OLE. DCOM was developed as an extension of COM to allow network based interactions and Allows Processes to Be Spread Across A NetWork.
Corba:
Common Object Request Broker Architecture was developed by Object Management Group (OMG). OBG is a consortium of hundreds of companies that are working to the adapt a standard architecture for distributed object computing. CORBA is based on Object Management Architecture, which was published in 1991 by the OMG. CORBA was developed to provide vendors with a standard architecture that allows them to develop applications using different languages, operating systems, and hardware and still provide the portability and interoperability.
Technical View:
COM / DCOM:
COM allows clients to invoke services provided by COM-compliant components by defining a binary compatibility specification and implementation. COM compliant components (COM Objects) provide a set of interfaces that allow a client to contact the Object using those interfaces only.
COM defines the binary structure between the client and the Objects and is the basis for interoperability between components written in multiple programming languages as long as the language compiler supports Microsoft Zha COM binary structure.
COM objects can have multiple interfaces but each class must have its own unique class ID (CLSID) and its interface must have Globally Unique Identifier (GUID) to avoid name collisions. Objects and interfaces are defined using Microsoft Zha IDL (Interface Definition Language). COM architecture does not allow for easy modification of the interfaces and their methods to help prevent potential version incompatibilities. COM developers are rather encouraged to build new interfaces to the objects to provide additional functionality. COM objects run inside of a server, and the server provides three ways for the clients to access COM Objects.In-process server: Client and Server run in the same memory process and communicate among each other using function calls Local Object Proxy:. This allows clients using an inter-process communication mechanism to access server Running in a Different Process But on The Same Physical Machine. THIS Inter-Process Mechanism Is Also Known As Lightweight Remote Pro cedure call Remote Proxy Object:. This allows clients to access remote servers running on another machine Clients and servers communicate using distributed computing environment RPC Remote objects supporting this mechanism are called DCOM Servers...
Two major extensions to COM: MTS and MSMQ are provided by DCOM DCOM Server Objects provide support for multiple threads MTS (Microsoft Transaction Server) runs on Windows NT Server and provides transaction oriented processing and is based on the DTC (Distributed Transaction Coordinator).. . MTS is included in DCOM as a runtime middle-ware environment provides asynchronous application operation with MSMQ and synchronous operation with RPC (Remote Procedure Call). DCOM also has remote garbage collection functionality built into it, which makes it a robust system.CORBA that :
CORBA is designed and structured to allow integration of multiple object systems written in different languages and running on different platforms. CORBA relies on ORB middle-ware for communication between the server and the client. ORB acts as an object that connects remote objects transparently. Each CORBA object exposes an interface that has a set of methods attached to it. ORB is responsible for finding the object implementation for the request and to format and communicate request to the CORBA server. ORB provides transparency to the client, and the client never needs to Know About The Location of The Remote Object and What Language Was Used to Implement IT.
CORBA is based on Object Management Architecture (OMA), and OMA defines a broad range of services for building distributed applications. OMA services are divided into three layers named CORBAServices, CORBAFacilities, and ApplicationObjects. ORB communication infrastructure is required for applications to access these services ...........
CORBAServices: are the necessary building blocks for developing distributed applications These services provide asynchronous event management, transactions, persistence, concurrency, naming, relationships, and lifecycle management CORBAFacilities:.. Are not necessary for developing distributed applications but can be useful in some cases. These facilities provide information management, system management, task management, and user interface ApplicationObjects:. are dedicated to providing service to a class of application or a specific application These are either basic services, support common facilities or application-specific services..
CORBA interfaces and data types are defined using OMG Interface Definition Language. Each interface Zha methods are also defined using OBG IDL. IDL is the key part of CORBA architecture that provides mapping of data types between CORBA and programming languages. IDL also allows for easy encapsulation of legacy code. IDL is an object-oriented interface definition language with syntactic similarities with C . As all the interfaces are defined in IDL, CORBA specifications allow for client and objects to be written in different languages while keeping the details transparent from each other. CORBA Uses IIOP (Internet Inter-ORB Protocol) for Communication Among Various Object Request Brokers Using TCP As The Network Transport.
CORBA components include ORB Core, ORB Interface, IDL Stub, DII (Dynamic Invocation Interface), Object Adaptor, IDL Skeletons, and DSI (Dynamic Skeleton Interface) CORBA runtime infrastructure (ORB Core):. Is vendor specific and is not defined by CORBA . However, ORB interface is a standard interface to functions provided by all CORBA compliant ORBs. IDL processor generates stubs for each interface. This hides the low-level communication and provides a high-level, object-type specific API. DII is an alternative to the IDL stubs that provides a generic mechanism for constructing requests at run-time. Object Adaptor, provides ability to integrate alternative object technologies into the OMA. IDL skeletons are similar to IDL stubs but they provide the server-side (object implementation). Object Adaptor Sends Requests to the IDL Skeletons, Which in Turn Call, The Appropriate Methods in The Object Implementation.technical Comparison:
CORBA Relies on IIOP for communication with remote objects while DCOM relies on Object Remote Procedure Call (ORPC) for the same purpose. CORBA architecture is based on Object Request Broker while DCOM uses COM as its basis and for transaction processing it relies on MTS or MSMQ . CORBA specification is not vendor specific and hence CORBA applications can run on multiple hardware platforms. On the other hand, DCOM is Microsoft Zha proprietary architecture and runs only on hardware supported by Microsoft operating systems. CORBA allows for multiple inheritance while DCOM only provides single inheritance. DCOM uses ping every two minutes to check if the client is still alive, if for six minutes the client doesn Yang respond DCOM discards the client Zha request. CORBA on the other hand does not force the client to stay connected and does not use Keep Alive Messaging. As DCOM Uses Keep Alive Messaging It Is Able To Determine When To Discard The Request and It Has Built in Garbage Collection, While Co RBA Does Not Provide Builtin Garbage Collection Mechanism.usage View:
COM / DCOM:
COM / DCOM is Microsoft Zha proprietary architecture and is only supported on Windows family of operating systems. However, third party vendors provide support for DCOM on UNIX systems. DCOM is based on native binary format hence offers faster execution but is not portable to other platforms . COM / DCOM components have access to Windows API and can potentially damage or compromise user Zha computing environment. DCOM provides basic support for distributed objects but no support for real time processing or situations requiring high reliability. Although COM has been available for a while it Is Not Clear Weather ITS Flavor DCOM WILL BE Equally Effective In Wide Distributed Applications.corba:
CORBA is only a specification and not an implementation, so it Zha hard for buyers to determine if the product in consideration is fully CORBA compliant or not. Also there are no defined test suites for determining CORBA compliance. It is necessary for users to perform hands -on evaluation of vendor products. CORBA is complex specification and require a considerable expertise for develop distributed objects and applications. On the other hand, it is easier than previously available technologies for developing distributed applications. Still thorough expertise in distributed systems design, distributed and Multi-Threaded Programming and Debugging, Inter-Networking, Object Oriented Design, Analysis, and Programming is Required.
USAGE Comparison:
Cross-platform support is very extensive in CORBA while COM / DCOM is limited to Microsoft operating systems. CORBA as well as COM support components written in multiple languages. CORBA Objects are based on a standard specification published in 1991 while COM Zha specifications and code are continuously changing and the documents are available only in draft format. COM was originally designed to run on single machine and was not designed for large-scale networks. However, CORBA was designed from scratch with large-scale distributed applications in consideration.CORBA products are available from a wide variety of vendors while COM / DCOM is only available from Microsoft. As CORBA specification is defined by OMG a consortium of 800 companies, its highly likely to reflect the demands of the industry as opposed to COM / DCOM, which is Proprietary to Microsoft and Microsoft Retains The Final Say In COM / DCOM Specifications.
Conclusion:
COM / DCOM and CORBA are both scalable and robust architectures for distributed computing and offer different advantages. However, due to their inherent differences they are suitable for different sizes and types of applications and scenarios. COM / DCOM is suitable if the systems are predominantly running Microsoft Zha operating systems and the geographic distribution is not very wide spread. CORBA is suitable for heterogeneous and widely distributed systems. Both technologies have similarities and differences in their architecture and hence should be considered before choosing either one. Also, many vendors are offering solutions That Allow Corba Applications To Interact with COM and Vise Versa. Seem Like COM / DCOM AND CORBA WILL Continue To Compete Vigorously and Still Co-Exist for a long time to come.reference:
Microsoft Corporation (2001). COM specification.
Tallman, O., & Kain, J. (1998). Com Versus Corba: a Decision Framework.
BRAKE, M. (1998). Explaining Corba.
Object Management Group (2001). The Common Object Request Broker: Architecture and Specification.
Microsoft Corporation (1998). Microsoft Component Services.
Raj, J. (1998). Common Object Request Broker Architecture.
Software Engineering Institute (1997). Component Object Model (COM), DCOM, And Related Capabilities.
Software Engineering Institute (1997). Common Object Request Broker Architecture.
Microsoft Corporation (1996). DCOM Technical overview.