Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how RMI works?

 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please give me a brife description of how RMI works.
Thanks in advance,
Sarah
 
Arunagiri, Shanmugham
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic