0

Before starting the client-server talk :

  1. I start rmiregistry on the server machine.
  2. Then i start the server. In server code there is an instruction Naming.rebind("MyServer",myServerImplementation) . I read this statement binds the object myServerImplementation with the class MyServer and keeps it in the registry .

  3. Then i start the client Naming.lookup(serverURL) . I know that this statement looks up for the remote object in the registry. I cast the returned object into the remote object.

  4. Using this reference of remote object i call a remote method greet .

    Can you explain how this call is routed to the function of the remote object. Is there any role rmiregistry plays to route this call? What role does skeleton play to route this call ?

program-o-steve
  • 2,630
  • 15
  • 48
  • 67

0 Answers0