A.6. Marshalling Architecture

A marshalling architecture ships method calls from one environment to another and provides some degree of help with the platform impedance issues discussed earlier. As mentioned in §A.2, marshalling involves seven steps:

1.
Convert a method invocation into a request message.
2.
Deliver the request message to a target environment.
3.
Convert the request message into a method stack in the target environment.
4.
Invoke the method.
5.
Convert the return value(s) or exception(s) into a response message.
6.
Deliver the response message to the source environment.
7.
Convert the response message back into the types expected by the caller.

In order for this communication to occur inside a single process space, the ...

Get Component Development for the Java™ Platform 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.