O'Reilly logo

Component Development for the Java™ Platform by Stuart Dabbs Halloway

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required