The RMI Framework

Before we take a look at using RMI, it is useful to understand the underlying framework of RMI and how the communication protocol fits into this framework. Understanding this framework will help in understanding the development process for RMI applications.

RMI applications work with what are commonly referred to as a stub and skeleton. Though the skeleton has become optional following the JDK 1.2, it is still a useful part of the RMI discussion (see Figure 18-1).

Figure 18-1. Java RMI.

The stub acts as a proxy and implements what we refer to as a proxy design pattern. The stub contains all of the methods that the remote object ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.