This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes how RMI works? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "how RMI works?" Watch "how RMI works?" New topic
Author

how RMI works?

sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
Please give me a brife description of how RMI works.
Thanks in advance,
Sarah
Arunagiri, Shanmugham
Ranch Hand

Joined: Jan 23, 2001
Posts: 46
Hi,

RMI works with the RMI Registry. All the objects that is to be accessed, will have to be registered first in the RMI registry. This registry can be located in any of the remote system. Before registering the object into register. U have to create a Skeleton and Stub class using an Interface which extends Remote class.
U have to compile the Server and client programs with java.exe which should be followed by compiling the Server class file with rmic.exe (RMI compiler) which will create the Skeleton and Stub files automatically. Client program and Server program will not directly talk to the registry, instead they use Stub and Skeleton files.
Hope this gives a brief idea on RMI architecture.
Arun
Sun Certified Programmer for Java2 Platform


Sun Certified Programmer for Java2 Platform
 
wood burning stoves
 
subject: how RMI works?
 
Similar Threads
Is still required rmic?
rmi- a new Obj or new thread is created for each client?
Proxy class for rmi in java5.0
Firewall tunneling
Difference between EJB and RMI