CORBA provides facilities for dynamic method invocation. CORBA API's allow client program to dynamically build and invoke requests on objects. The client specifies the object to be invoked, the method to be performed and parameter to be passed. The client gets all this information from the interface repository.
The following gives a step by step guide on how to invoke methods on server objects dynamically:
1. Obtain method description from the Interface Repository: CORBA provides call for locating and describing the objects in the interface repository
2. Create Argument List: CORBA specifies a self-defining data structure for passing parameters (NameValue list) It provides calls to create these lists and add each argument to the list
3. Create Request: The request specifies the object reference, the name of the method and the argument list.
4. Invoke the Request: A request can be invoked in one of the following ways
Copyright © 1996 Virginia Polytechnic Institute & State University
All Rights Reserved
Padmapriya Vasudevan
priya@csgrad.cs.vt.edu
Last modified: Sun Sep 22 21:16:15 1996