Using the RMI Module

The RMI module generates most of the source code you need for RMI client and server programs. This is not, however, a one-step process, and the procedures you follow to create RMI programs are outlined below:
  1. Obtain or write the remote interface that defines the interfaces for your RMI programs. If you are using non-group RMI templates to generate server-side code, generate your remote interface first. If you are using group templates or the RMI wizard to generate server-side code, you can use the wizard to both write your remote interface and generate program files based on the interface.
  2. Decide which Java source files you need generated, client-side, server-side, or both.
  3. Use either the RMI wizard or the RMI templates to generate the files.
  4. Add the code that completes the generated files:
  5. Compile the package. On the server side this includes the remote interface.
  6. Run and test your programs.

Legal Notices