Dynamic Invocation

Most of the time, when you use CORBA from a Java program, you're doing static method invocation. That is, you know about the methods that you want to call when you first compile your program. CORBA also supports a mechanism called dynamic method invocation, where you don't need to know what methods an object supports until runtime. The official name for the dynamic method invocation is the Dynamic Invocation Interface, or DII.

Obviously, if you don't know about the methods until runtime, you can hardly expect to have a stub object for invoking methods. Instead, you create a Request object based on a method name.

The Request object represents a particular method in a distributed object. To create a Request object, call the ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.