


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A series of notes from a university course, cmsc 433, taught by alan sussman at the university of maryland. The notes cover the topic of remote method invocation (rmi) in java, which is a way to achieve distributed computation by making function calls that appear local but are actually executed on another machine. The concept of remote objects and interfaces, the rmi compiler, passing arguments, downloading code, and security considerations. It also includes examples of an rmi chat server and client.
Typology: Study notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



CMCS 433, Fall 2001 - Alan Sussman 2
CMCS 433, Fall 2001 - Alan Sussman 3
CMCS 433, Fall 2001 - Alan Sussman 4
CMCS 433, Fall 2001 - Alan Sussman 5
CMCS 433, Fall 2001 - Alan Sussman 6
CMCS 433, Fall 2001 - Alan Sussman 7
CMCS 433, Fall 2001 - Alan Sussman 8
CMCS 433, Fall 2001 - Alan Sussman 9
CMCS 433, Fall 2001 - Alan Sussman 10
CMCS 433, Fall 2001 - Alan Sussman 11
CMCS 433, Fall 2001 - Alan Sussman 19
ClientImpl
Server s = (Server) Naming.lookup(“//host/ChatServer”);
Hosted Remote Objects
c
s
ServerImpl Stub
Hosted Remote Objects
ServerImpl CMCS 433, Fall 2001 - Alan Sussman 20
ClientImpl
Connection conn = s.logon(“Alan”, c);
Hosted Remote Objects
c
s
ServerImpl Stub
Marshalled arguments Serialized String “Alan” Serialized Stub for c
target
method: logon
CMCS 433, Fall 2001 - Alan Sussman 21
“Alan”
ClientImpl Stub
ServerImpl
Marshalled arguments Serialized String “Alan” Serialized Stub for c
target
method: logon logon
CMCS 433, Fall 2001 - Alan Sussman 22
“Alan”
ClientImpl Stub
ServerImpl
Hosted Remote Objects
name
client
conn
Connection Impl
CMCS 433, Fall 2001 - Alan Sussman 23
“Alan”
ClientImpl Stub
ServerImpl
Hosted Remote Objects
Connection Impl
Marshalled return value:
Serialized Stub for conn
conn
CMCS 433, Fall 2001 - Alan Sussman 24
ClientImpl
Hosted Remote Objects
c
s
ServerImpl Stub
Marshalled return value Serialized Stub for conn
ConnImpl Stub
conn