2.5. RMI protocols

You may have noticed that nowhere in the previous discussion were details of the communications protocol discussed. This is because the standard Java RMI API is essentially protocol-independent. When a client makes a lookup for the remote object, it gets back a reference to a stub that supports whatever protocol that remote object is prepared to accept. There are, in practice, two protocols in widespread use by Java developers: JRMP and IIOP. However, techniques based on XML (such as SOAP) are becoming increasingly important. This section describes these protocols in outline.

2.5.1. JRMP

The earliest communications protocol used in Java RMI was Java Remote Method Protocol (JRMP). This protocol is proprietary to Sun Microsystems ...

Get Applied Enterprise JavaBeans™ Technology 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.