Using external IDL files

About this task

To include an external IDL file in a CORBA model:

Procedure

  1. Add the external CORBA interface class to the model.

    In the password authentication sample, the IEx interface is an external IDL file that is supplied with a server.

  2. Set the CG::Class::UseAsExternal property for the external class IEx to True so IBM® Rational® Rhapsody® does not generate code for it.
  3. Type the name of the external IDL file (IEx.idl) in the CG::Class::FileName property for the external class IEx.

    Alternatively, you can set the CORBA::Configuration::IncludeIDL property for the configuration to the name of the external file

  4. If the external file references any additional libraries that are not part of the model, add the external libraries in the Libraries field of the Settings tab of the Configuration window.
    Note: You can tailor the generated IDL code to various ORB vendors by inserting vendor-specific code segments.

Feedback