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 SUN SCJA exam.
Get certified in first attempt download CX310-019 - SCJA simulation.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.