



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




CMSC 433, Spring 2002 - Alan Sussman 2
CMSC 433, Spring 2002 - Alan Sussman 3
CMSC 433, Spring 2002 - Alan Sussman 4
CMSC 433, Spring 2002 - Alan Sussman 6
CMSC 433, Spring 2002 - Alan Sussman 7
CMSC 433, Spring 2002 - Alan Sussman 8
CMSC 433, Spring 2002 - Alan Sussman 9
CMSC 433, Spring 2002 - Alan Sussman 10
CMSC 433, Spring 2002 - Alan Sussman 11
CMSC 433, Spring 2002 - Alan Sussman 12
CMSC 433, Spring 2002 - Alan Sussman 19
ServerImpl
Naming.rebind(“ ChatServer”, s);
Hosted Remote Objects
RMIRegistry
ChatServer
ServerImpl Stub
CMSC 433, Spring 2002 - Alan Sussman 20
ClientImpl
Client c = new ClientImpl();
Hosted Remote Objects
c
CMSC 433, Spring 2002 - Alan Sussman 21
ClientImpl
Server s = (Server) Naming.lookup(“//host/ ChatServer”);
Hosted Remote Objects
c
s
ServerImpl Stub
Hosted Remote Objects
ServerImpl CMSC 433, Spring 2002 - Alan Sussman 22
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
CMSC 433, Spring 2002 - Alan Sussman 23
“Alan”
ClientImpl Stub
ServerImpl
Marshalled arguments Serialized String “Alan” Serialized Stub for c
target
method: logon logon
CMSC 433, Spring 2002 - Alan Sussman 24
“Alan”
ClientImpl Stub
ServerImpl
Hosted Remote Objects
name
client
conn
Connection Impl
CMSC 433, Spring 2002 - Alan Sussman 25
“Alan”
ClientImpl Stub
ServerImpl
Hosted Remote Objects
Connection Impl
Marshalled return value:
Serialized Stub for conn
conn
CMSC 433, Spring 2002 - Alan Sussman 26
ClientImpl
Hosted Remote Objects
c
s
ServerImpl Stub
Marshalled return value Serialized Stub for conn
ConnImpl Stub
conn