Introduction to RMI
Introduction to RMI
Shruti Mittal
JCBUST, YMCA
What is RMI
• RMI = Remote Method Invocation
• Enables a Java program to invoke methods on an object running in
another JVM
• Facilitates distributed computing in Java
• Built on top of TCP/IP
RMI architecture
•Transport Layer − This layer connects the
client and the server. It manages the
existing connection and also sets up new
connections.
•Stub − A stub is a representation (proxy)
of the remote object at client. It resides in
the client system; it acts as a gateway for
the client program.
•Skeleton − This is the object which resides
on the server side. stub communicates
with this skeleton to pass request to the
remote object.
•RRL(Remote Reference Layer) − It is the layer
which manages the references made by
the client to the remote object.
Working of an RMI Application