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

What is the basic princi...

Câu trả lời

The basic principle of Remote Method Invocation (RMI) architecture is to enable the invocation of methods on an object residing in a different Java Virtual Machine (JVM) than the caller. This mechanism is fundamental to building distributed applications in Java, allowing objects to interact across different JVMs as if they were on the same machine.

RMI operates by creating a communication bridge between the client and the server, where each side has objects facilitating this interaction. The key components involved in RMI architecture include:

  1. Stub and Skeleton: The stub (client-side) and skeleton (server-side) act as gateways for the method calls. The stub receives calls from the client, forwards them to the skeleton on the server side, which then invokes the method on the actual remote object.

  2. Remote Reference Layer (RRL): This layer manages the references made by the client to the remote object, ensuring that method calls are correctly routed to the appropriate remote object instance.

  3. Transport Layer: This layer manages the connections between client and server, handling the setup and maintenance of these connections to facilitate communication.

  4. RMI Registry: This is a naming service where remote ob...

senior

senior

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

senior

When to use LinkedList over ArrayList in Java?

junior

When does an Object becomes eligible for Garbage Collection in Java ?

expert

What does synchronized mean?

Bình luận

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

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