Using RMI over IIOP
Remote Method Invocation (RMI) is a term you may have seen a number of times reading this book. You probably know that EJBs use RMI, but you may still wonder what exactly RMI is. Well, it is a Java-specific distributed object system that allows you to create and use remote objects. For example, an RMI object running on one server can get a reference to another RMI object running on another server. After it has that reference, it can invoke the methods of the remote object as if it were local.
As with CORBA applications, you write remote interfaces for an object and generate stubs and skeletons. Also like CORBA, RMI allows a client and a remote object to communicate through client stubs and server skeletons. The stub exposes ...
Get Sams Teach Yourself J2EE™ in 21 Days 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.