Google
 

 

up previous next contents
Up: 3. Day 3: Standard Previous: 3.5 JavaBeans Next: 3.7 Java Native Interface   Contents

3.6 Remote Method Invocation (RMI)

  • Allows Java programs to call methods on Java objects in different virtual machines, and even different physical machines.
  • An RMI server is a java class that is registered in the JVM.
  • The JVM listens on a dedicated port for RMI requests.
  • RMI clients call the server through a proxy that implements the same interface as the server.
  • The Java SDK contains the rmic compiler to automatically generate the proxy and server code required to make a class an RMI server.