O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required