Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is RMI registry

What is RMI registry? What does it do?

like image 617
saplingPro Avatar asked Apr 14 '11 05:04

saplingPro


People also ask

What do you mean by RMI?

(Remote Method Invocation) A standard from Sun for distributed objects written in Java. RMI is a remote procedure call (RPC), which allows Java objects (software components) stored in the network to be run remotely.

What is RMI registry port?

By default, the RMI Registry uses port 1099. Client and server (stubs, remote objects) communicate over random ports unless a fixed port has been specified when exporting a remote object.

What is RMI and its steps?

The RMI (Remote Method Invocation) is an API that provides a mechanism to create distributed application in java. The RMI allows an object to invoke methods on an object running in another JVM. The RMI provides remote communication between the applications using two objects stub and skeleton.

What is RMI call in Java?

In computing, the Java Remote Method Invocation (Java RMI) is a Java API that performs remote method invocation, the object-oriented equivalent of remote procedure calls (RPC), with support for direct transfer of serialized Java classes and distributed garbage-collection.


1 Answers

Essentially the RMI registry is a place for the server to register services it offers and a place for clients to query for those services. See Introduction to Java RMI. Excerpt:

Figure 1 shows the connections made by the client when using RMI. Firstly, the client must contact an RMI registry, and request the name of the service. Developer B won't know the exact location of the RMI service, but he knows enough to contact Developer A's registry. This will point him in the direction of the service he wants to call..

like image 76
WhiteFang34 Avatar answered Sep 22 '22 22:09

WhiteFang34