7.4. JRMP

JRMP is the native transport protocol of RMI. Similar to IIOP, it can invoke methods, and pass arguments, return values, and exceptions over the network. RMI does not typically (at this time) come with a body of services, though there is a naming service included with it. The most significant difference from IIOP however, is that JRMP does not restrict argument and return types to data values, JRMP handles objects. Objects have state and behavior, which means that JRMP provides a mechanism to transfer the class file of an object into the recipient of an argument or returned value (or an exception for that matter). This copying of class file is done on an as-needed basis to avoid wasting bandwidth. Before you can copy classes, you must ...

Get Sun Certified Enterprise Architect for J2EE™ Technology Study Guide 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.