RMI Flashcards
What is RMI
Remote Method Invocation.
It allows a java program to invoke a method in another machine.
Does RMI need an IDL (interface definition language)?
No, javas own interfaces can be used to define the interface to build the ORB from.
Which entities are there in a RMI call?
Servant/server: the provider of methods to be invoked
Name server: the address book for which services and methods can be called
ORB: object request broker this is who the client and the service communicates with. it gives clients information when they lookup services and clients call the services through the ORB it is the middleware.
Client. client is client
What is the differences between RMI and RPC?
RMI can take in objects as parameters to methods where RPC is only normal data structures.
What is the general idea behind RMI and RPC?
It’s to allow a program to instantiate and call an object as if it was local.
Which advantages are there with RMI and RPC?
the client will be thin and it allows good performance on low-end computers as long as they have a fine connection. Then the services will do the computations
What is the registry and how does it work?
The registry is where the list of procedures are stored. The client will make a lookup call to the registry to retrieve the possible calls.
what a the stub?
that is the (orb)object which reveices the call on the clients end. The stub then creates a socket to the remote server where it will be received by the skeleton.
what is the skeleton?
the skeleton is the (orb) object which translates the request to the server’s language. then the server makes the computations and the skeleton gives it back to the stub.
arguments sent via remote methods can be of which 3 types?
primitive types, Remote Object type and Serializable
can you send other types than primitive types, Remote Object type and Serializable in RMI?
no.