RMI_PPT (2)

RMI_PPT (2) - RMI Remote Method Invocation Distributed...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon
RMI Remote Method Invocation
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Distributed Object Model Views a distributed system as a series of  interacting objects  Based on some underlying message passing   protocol invisible to the programmer  Three main technologies: RMI, CORBA and  DCOM 
Background image of page 2
3 Distributed Object Computing Enable any object in the local system to directly  interact with an object on a remote host  Goals:  Goals: Let any object reside anywhere in the network, and  allow an   application to interact with these objects in the  same way as they do with a local object. ct. Provide the ability to construct an object on one host  and transmit it to another host.  transmit it to another host
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 What is RMI? A mechanism that allows the invocation of a  method that exists in another address space  Java-to-Java only  Client-Server Protocol 
Background image of page 4
5 Remote Object Diagram
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 “The network is the computer”* Consider the following program organization: If the network is the computer, we ought to be able to put the two classes on different computers SomeClass AnotherClass method call returned object RMI is one technology that makes this possible computer 1 computer 2
Background image of page 6
7 RMI and other technologies CORBA (Common Object Request Broker Architecture) has long been king CORBA supports object transmission between virtually any languages Objects have to be described in IDL (Interface Definition Language), which looks a lot like C++ data definitions CORBA is complex and flaky Microsoft supported CORBA, then COM, now . NET RMI is purely Java-specific Java to Java communications only As a result, RMI is much simpler than CORBA
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8 Terminology A remote object is an object on another computer The client object is the object making the request (sending a message to the other object) The server object is the object receiving the request As usual, “client” and “server” can easily trade roles (each can make requests of the other) The rmiregistry is a special server that looks up objects by name Hopefully, the name is unique! rmic is a special compiler for creating stub (client) and skeleton (server) classes
Background image of page 8
9 RMI Architecture
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10 RMI Architecture simplified
Background image of page 10
11 Processes For RMI, you need to be running three processes The Client The Server The Object Registry , rmiregistry , which is like a DNS service for objects You also need TCP/IP active
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
12 Object / RMI Registry Name and look up remote objects  Name and look  up remote objects Remote objects register by name  Remote objects  register by name Clients obtain a remote reference to the   remote  object  remote object A registry is a running process on the same host  as the RMI server
Background image of page 12
13 RMI – steps in brief Java makes RMI (Remote Method Invocation) fairly
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 14
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 53

RMI_PPT (2) - RMI Remote Method Invocation Distributed...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online