Java RMI CDP Tutorial: Based On
Java RMI CDP Tutorial: Based On
RMI
CDP Tutorial
Based on
Client Remote
Object TCP Object
What is RMI?
RMI is an RPC system for an object based
language.
Objects provide a natural granularity for the
binding of functions.
RMI allows a program to hold a reference to an object
on a remote system and to call that object’s methods.
Client-Server architecture.
Server holds the object.
Client holds a small stub that accesses the object on
the Server.
RMI Layers
Java Virtual Machine Java Virtual Machine
Client Remote
Object Object
Stub Skeleton
implements implements
Remote Object
Client Stub Skeleton
(Server)
Registries
Name and look up remote objects
Servers can register their objects
Clients can find server objects and obtain a
remote reference
A registry is a running process on a host
machine
RMI System Architecture
Client Virtual Machine Server Virtual Machine
Client Remote
Object
Skeleton
Stub Server
“Fred”
Skeleton
Stub Server
“Fred”
“Fred”
6
Skeleton
Stub Server