A.2. Translucent Stubs
A translucent stub is the visible part of a marshalling architecture. A marshalling architecture moves a method call from one environment to another by executing the following series of 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.
|
Figure A-1 illustrates these steps.
Figure A-1. Marshalling a call from Java to COM
Stubs vary in how well they ...
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.