140 likes | 401 Views
RMI Chat Application. Instructions: Delete sample document icon and replace with working document icons as follows: Create document in Word. Return to PowerPoint. From Insert Menu, select Object… Click “Create from File” Locate File name in “File” box
E N D
RMI Chat Application Peter Cappello
Peter Cappello • Instructions: • Delete sample document icon and replace with working document icons as follows: • Create document in Word. • Return to PowerPoint. • From Insert Menu, select Object… • Click “Create from File” • Locate File name in “File” box • Make sure “Display as Icon” is checked. • Click OK • Select icon • From Slide Show Menu, Select Action Settings. • Click “Object Action” and select “Edit” • Click OK Architecture: Star Topology Client1 Client6 Server Client2 Client5 Client4 Client3
Client Registration ServerImpl proxyMap
Client Registration ServerImpl proxyMap Client
Client Registration ServerImpl proxyMap Client “Bob”
Client Registration ServerImpl proxyMap 1. Rmiregistry lookup Client “Bob”
Client Registration ServerImpl ServerProxy “Bob” proxyMap messageQ 2. login Client “Bob”
Client Registration ServerImpl ServerProxy “Bob” 3. login proxyMap messageQ 2. login ClientProxy “Bob” Client “Bob” chatters messageQ
Posting a Message ServerImpl ServerProxy “Bob” proxyMap messageQ update ClientProxy “Bob” Client “Bob” chatters messageQ
Posting a Message ServerImpl ServerProxy “Bob” update proxyMap messageQ update ClientProxy “Bob” Client “Bob” chatters messageQ
Posting a Message ServerImpl ServerProxy “Bob” update proxyMap messageQ update update ClientProxy “Bob” Client “Bob” chatters messageQ
Posting a Message ServerImpl ServerProxy “Bob” update proxyMap messageQ update update ClientProxy “Bob” Client “Bob” update chatters messageQ