RMI

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What is Java Remote Method Invocation (RMI)?

.The Java Remote Method Invocation (RMI) system allows an object running in one Java virtual machine to invoke methods on an object running in another Java virtual machine. RMI provides for remote communication between programs written in the Java programming language.

What is the role of 'marshal' in a RMI process (brief answer, use bullet points if preferred)?

1. Marshalling is the process of encoding the parameters before sending During communication between two machine the message is packed. 2. primitive data type 3.In case the parameters are objects, then they are serialized.

What is a stub?

A stub for a remote object acts as a client's local representative or PROXY for the remote object. (Client)

RMI consists of all of the following except A. A registry object B. Every remote object must have a name registered in the registry C. Every remote object's address must be registered in the registry D. Every remote object's URL must be registered in the registry

C. Every remote object's address must be registered in the registry

Serialization of small packets on info doesn't require converting the state of the object into byte stream.

F

Client program in real time takes some time to obtain any result, while waiting it can free up the CPU usage through a process called polling.

T

RMI doesn't require explicit connection between client and server for data communication.

T

The RMI system has a registry object. Every remote object must have a name registered in the registry.

T

When a client invokes a remote method, it calls a proxy not the original method.

T

When serializing, it is also required that, all the fields of a class ought to be serialized.

T

Define Unmarshalling

The process of reassembling a message on arrival to procedure an equivalent collection of data items at the destination. (Reads) Primitive values are generated from their external data representations and data structures are built.

Define Marshalling

The process of taking a collection of data items and assembling them into a form suitable for transmission in a message. (writes and transmits)

What is a skeleton?

The skeleton is responsible for dispatching the call to the actual remote object implementation. (Server)


Ensembles d'études connexes

Biology 111 (Kemp) Chapter 19 Test Bank Questions

View Set

B Lymphocytes & Humoral Immunity (18)

View Set

Post Civil War Business and Labor (Praxis 5004)

View Set