Câu hỏi phỏng vấn Java
Câu hỏi

What are the layers ...

Câu trả lời

The layers of RMI (Remote Method Invocation) Architecture are crucial for enabling the communication between applications running on different Java Virtual Machines. Here's a detailed explanation of each layer:

  1. Stub/Skeleton Layer (also known as the Proxy Layer): This is the topmost layer in the RMI architecture. It facilitates the communication between the client and the server. The stub acts as a gateway on the client side, representing the remote object and forwarding requests to the server. On the server side, the skeleton receives these requests and directs them to the appropriate remote object methods[1][2][3][4][5].

  2. Remote Reference Layer (RRL): This layer manages the references made by the client to the remote object on the server. It is responsible for the lifecycle and the lookup of these remote object references. The RRL on the client side handles serialization (marshaling) of the method calls into a format suitable for transmission over the network. Conversely, the server-side RRL handles deserialization (unmarshaling), reconstructing the method calls before forwarding them to the skeleton[1][2][3][4][5].

  3. Transport Layer:...

expert

expert

Gợi ý câu hỏi phỏng vấn

senior

What exactly is marker interface in Java?

expert

Why ArrayList are preferable in many more use-cases than LinkedList ?

middle

What’s a deadlock?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào