remote method invocation (rmi)

9
AbdolNaser Dorgalaleh RMI Remote method Invocation

Upload: abdolnaser-dorgalaleh

Post on 21-Jun-2015

116 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Remote method invocation (RMI)

AbdolNaser Dorgalaleh

RMIRemote method Invocation

Page 2: Remote method invocation (RMI)

How is Java RMI :

Page 3: Remote method invocation (RMI)

• I have an object residing in one machine that want to access to an object that residing on another machine to invoke the methods

Page 4: Remote method invocation (RMI)

Explain :

• Client : invoke methods across the network residing on the Server

•Rmiregistry : at first we most start rmiregistry

the rmiregistry is the element that helps the

server to advertise there availability and clients

use rmiregistry to find refrences to remote

object that they want to invoke.

Page 5: Remote method invocation (RMI)

Implementation:

• Define the interfaces

• Implement the server

• Implement the client

Page 6: Remote method invocation (RMI)

Running:

• Run rmiregistry

• Run the server

• Run the client.Clients will connect to rmiregistry to invoke remote method.

Page 7: Remote method invocation (RMI)

The Archotecture

Page 8: Remote method invocation (RMI)

Stub : Proxy for the remote object as we said the object is residing on a remote machineAfter making call the call come from the client to the stub and the stub passes the request to the RRL(Remote Refrence layer) and rrl identify the type of the server that is unicast or multicast Rmi supports unicast Server.Unicast: you can not replicate the object

Page 9: Remote method invocation (RMI)