The RMI module generates most of the source code you need for RMI client and server programs. For an overview of how RMI works in the IDE, see:
RMI Technology
Required Files for RMI Programs
Steps for Creating an RMI Program
For a comprehensive tutorial on RMI, visit the Sun Microsystems web site
at java.sun.com/docs/books/tutorial/rmi
.