What are the advantages of RMI over sockets?
February 28th, 2007 by uCertify
Leave a reply »
RMI stands for Remote Method Invocation. It is a distributed environment technology. It provides object-to-object communication between different Java Virtual Machines (JVMs). It is basically meant for developing large-scale systems, as it allows distribution of resources and processing load across the network. RMI can also be expressed as follows:
RMI = Sockets + Object Serialization + Utilities
RMI is much easier to work with than sockets.
While working with RMI, there is no need to worry about designing a protocol between the client and server that is an error-prone process.
Note: A communication overhead is involved when using RMI by the use of RMI registry and client stubs or proxies that make remote invocations transparent. The RMI remote object needs a proxy, which slows the performance down.
Download free practice test for scja SCJA exam.
Click here to get free CX310-019 SCJA exam practice questions.