The Wayback Machine - https://web.archive.org/web/20240709213356/https://www.geeksforgeeks.org/difference-between-rmi-and-dcom/
Open In App

Difference Between RMI and DCOM

Last Updated : 27 Aug, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

In this article, we will see differences between Remote Method Invocation(RMI) and Distributed Component Object Model(DCOM). Before getting into the differences, let us first understand what each of them actually means.

RMI applications offer two separate programs, a server, and a client. There are some tasks that are performed by the server program i.e. to create some remote objects, to make references to objects, and also to wait for the clients so that they invoke methods on these objects. A client obtains a remote reference to one or more remote objects on a server and invokes methods on them. Basically, RMI provides the mechanism through which the server and client can communicate and pass information back and forth. The RMI consists of three layers:

  • Stub/Skeleton layer
  • Remote Reference layer
  • Transport layer

The relationship among these layers is as shown in the following figure:

DCOM is Microsoft’s solution for Distributed computing. It allows one client application to remotely start a DCOM server object on another machine and invoke its methods. It gives features like language independence, ability to communicate using TCP/IP, UDP, IP, IPX/SPX, and HTTP and static/dynamic invocation of objects. It is best suited for an environment that is Microsoft product-oriented. It includes the following functions:

  • Locating and loading remote classes.
  • Locating remote objects and providing references to them.
  • Enabling remote method calls.

The following table describes the differences:

RMI

DCOM

In RMI every server object implements java.rmi.Remote interface. In DCOM every object implements IUnknown.
It uses JRMP as its underlying remoting protocol. It uses Object Remote Procedure Call as its underlying remoting protocol.
The mapping of an object name to its implementation is handled by the RMIRegistry. The mapping of an object name to its implementation is handled by the Registry.
The responsibility of locating object implementations falls on JVM. The responsibility of locating object implementations falls on Server Control Management.

Previous Article
Next Article

Similar Reads

Difference between COM and DCOM
1. Component Object Model (COM) : Component object model was introduced by Microsoft in the year 1993. It is an interface standard designed for software components. It helps for the inter process communication irrespective of the programming language to be used. COM is termed as a software architecture that allows systems to be built from the diffe
2 min read
Difference between CORBA and DCOM
CORBA and DCOM are two middleware solutions for handling distributed objects. These solutions provide better commanding over distributed computing objects but the question is which technology is to be made as standard. Let us see the detailed comparison between them. 1. Common Object Request Broker Architecture (CORBA) : The Common Object Request B
3 min read
Difference between RPC and RMI
RPC stands for Remote Procedure Call which supports procedural programming. It's almost like an IPC mechanism wherever the software permits the processes to manage shared information Associated with an environment wherever completely different processes area unit death penalty on separate systems and essentially need message-based communication. Th
2 min read
Difference between RMI and CORBA
1. Remote Method Invocation (RMI) : RMI applications offers two separate programs, a server and a client. There are some tasks which are performed by the server program i.e., to creates some remote objects, to make references to this objects and also wait for the clients so that they invoke methods on these objects. A client program obtains a remot
2 min read
Difference between RMI and Socket
This article describes techniques for Client and Server setup where a Client connects, sends messages to the server and the server shows them using a connection and vice versa. RMI and Sockets both are used to establish a connection between client and server but there are some major differences between RMI and Socket, let's look into it. but before
4 min read
Spring and RMI Integration
Spring RMI integration in Java is a way to provide remote method invocation (RMI) support to Spring applications. In this integration, Spring acts as a client and a server using RMI for communication. In this article, we will learn about how to integrate spring and RMI in java. Here are the step-by-step guides to integrate Spring and RMI in Java, a
4 min read
How to run Java RMI Application
Prerequisite: RMI RMI (Remote Method Invocation) is used for distributed object references system. A distributed object is an object which publishes its interface on other machines. A Remote Object is a distributed object whose state is encapsulated. Stub and Skeleton are two objects used to communicate with the remote object. Stub: Stub is a gatew
4 min read
java.rmi.Naming Class in Java
Java.rmi.Naming class contains a method to bind, unbind or rebind names with a remote object present at the remote registry. This class is also used to get the reference of the object present at remote registries or the list of name associated with this registry. Syntax: Class declaration public final class Naming extends Object Let us do discuss s
4 min read
java.rmi.RMISecurityManager Class in Java
The RMISecurityManager enforces the security policy for classes that are loaded as stubs for remote objects, by overriding all of the relevant access-check methods from the SecurityManager. By default, stub objects are only allowed to perform class definition and class access operations. Note: If the local security manager is not an RMISecurityMana
3 min read
java.rmi.MarshalledObject Class in Java
java.rmi.MarshalledObject is a java class, a MarshalledObject contains a byte stream with the serialized representation of an object given to its constructor, The contained object is serialized and deserialized with the same serialization semantics used for marshaling and unmarshaling parameters. Signature public final class MarshalledObject<T
5 min read
Article Tags :
Practice Tags :
three90RightbarBannerImg