WWW: Beyond the Basics

22 Common Object Request broker Architecture (CORBA)

20.9 Static Method Invocation : A Step by Step Guide

In this section we discuss static method invocation in detail, right from creating server classes, providing interface stubs for them, storing their definitions in the interface repository, instantiating the objects at run time and recording their presence in the implementation repository.

1. Define object classes using Interface Definition Language: Objects use IDL to tell clients the operations that are available and how they could be invoked. The IDL definition language defines the types of objects, their attributes, the methods they export and the method parameters.

2. Run IDL through language precompiler: On running IDL files through precompiler produces language skeletons for the implementation server classes.

3. Add Implementation code to the skeletons: Create server classes in compliance with the language skeletons generated by the precompiler.

4. Compile the code: A Corba compliant compiler is typically capable of generating at least four types of output files:

5. Bind the class definitions to the Interface Repository: Bind or compile the IDL information in an Implementation repository that programs can access at run time.

6. Instantiate the objects on the server: The server Object Adapter instantiates server objects that service remote client method invocations. These run-time objects are instantiation of the server application classes.

7. Register the run-time objects with the Implementation Repository: Object Adapter records all the details on object reference and the type of objects that it had instantiated in the implementation repository. The implementation repository know all the objects supported by the server. The ORB uses this information to locate an active object or to request the activation of object on the server.

[PREV][NEXT][UP][HOME][VT CS]

Copyright © 1996 Virginia Polytechnic Institute & State University
All Rights Reserved

Padmapriya Vasudevan priya@csgrad.cs.vt.edu
Last modified: Sun Sep 20 21:16:15 1996