RMI - Distributed Systems
Download
Report
Transcript RMI - Distributed Systems
RMI …
Recall RMI
RMI (Remote Method Invocation)
use the Java programming language and development environment to write object-
oriented programming in which objects on different computers can interact in a
distributed network.
RMI is the Java version of what is generally known as a remote procedure call (RPC),
but with the ability to pass one or more objects along with the request
RPC
RPC (Remote Procedure Call)
RPC and RMI are two mechanisms that allow the user to invoke or call processes that
will run on a different computer from the one the user is using.
RMI vs RPC
The main difference between the two is the approach or paradigm used.
RMI uses an object oriented paradigm where the user needs to know the object and
the method of the object he needs to invoke.
RPC isn’t object oriented and doesn’t deal with objects. Rather, it calls specific
subroutines that are already established.
So..
RMI is object oriented while RPC isn’t
RPC is C based while RMI is Java only
RMI invokes methods while RPC invokes functions
Evaluation- RMI
Distributed Banking System
BankInterface.java
getName
getBalace
Withdraw
Deposite
BankImp.java
RegAccount.java
BankClient.java