10.2 Building Client Applications
Clients that use the Interface Repository need to link in
Interface Repository stubs. How this happens is specific to the
vendor. If the client application is using the Oracle Tuxedo ORB,
the Oracle Tuxedo software provides the stubs in the form of a
library. Therefore, programmers do not need to use the Interface
Repository OMG IDL file to build the stubs. The Interface
Repository definitions are contained within the
CORBA.h
file, but they are not included by
default.
Note:
To use the Interface Repository definitions, you must define theORB_INCLUDE_REPOSITORY
macro before including CORBA.h
in your client application code (for example: #Define ORB_INCLUDE_REPOSITORY
).
If the client application is using a third-party ORB (for example, ORBIX) the programmer must use the mechanisms that are provided by that vendor. This might include generating stubs from the OMG IDL file using the IDL compiler supplied by the vendor, simply linking against the stubs provided by the vendor, or some other mechanism.
Some third-party ORBs provide a local Interface Repository capability. In this case, the local Interface Repository is provided by the vendor and is populated with the interface definitions that are needed by that client.
Parent topic: CORBA Interface Repository Interfaces