What Is RMI?

Remote Method Invocation (RMI) is one of the cornerstones of Enterprise JavaBeans and is an extremely handy way to make distributed Java applications. The idea is simple: Instead of invoking a method on another Java object running in the same Java Virtual Machine (that is, the same executing program), you invoke a method in a Java object in another JVM on the same computer or a different one. Figure 4.1 illustrates the difference between a normal method invocation and a remote method invocation.

Figure 4.1. Remote method invocation takes place between separate Java Virtual Machines.

RMI is virtually seamless. You don't have to do ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.