Using the Interface Repository









Introduction



The Interface Repository is the CORBA service which manages the object interfaces. The orb and the clients may need to know which operations and attributes can be applied on an object, in particular when dynamic method invocation is used.
The whole OMG IDL specification of the Interface Repository is implemented.
The Interface Repository is an initial service, which runs inside the OrbRiver orb, its object id is "InterfaceRepository".







Limitations



Versioning is not yet supported.







Persistence



The Interface Repository objects persistent state is saved in the file $ORBRIVER_DIR/etc/IR_<Id> where <Id> is the ORB identity of the orb containing this IR. This file is only updated when the Save command is executed, or when the orb is cleanly stopped (see Stopping OrbRiver with stop_orb).







Editing with ir_editor



ir_editor is the tool to edit the InterfaceRepository (IR) of a given running orb. This means:

It has the CPP switches as idl2ada (see idl2ada Switches) plus the orb connection switches (see Client and Service switches).
When an IDL file name is given on the command line, ir_editor loads its contents and exits. When no IDL file name is given on the command line, ir_editor prompts for commands. The prompt is "-> ".

Several commands execute actions on the IR objects which can be named by their RepositoryId, their absolute scoped name, or a scoped name relative to the current container. At startup, the current container is the repository itself.
The modifications done with ir_editor are permanent (reloaded automatically when the orb starts) if the orb has been stopped by "stop_orb".

The commands are not case sensitive and some have a short alias.
The possible commands are:

Examples:
- To simply load an IDL file in the IR

$ORBRIVER_DIR/bin/ir_editor -ORBName OrbRiver_1 store.idl # Unix systems
%ORBRIVER_DIR%\bin\ir_editor -ORBName OrbRiver_1 store.idl !! rem Windows-Nt systems

- To do several actions in the IR

$ORBRIVER_DIR/bin/ir_editor -ORBName OrbRiver_1 # Unix systems
%ORBRIVER_DIR%\bin\ir_editor -ORBName OrbRiver_1 !! rem Windows-Nt system







Printing contents with print_idl



print_idl is the tool to display the contents of the InterfaceRepository of a given orb in a form similar to an IDL file. The result is not valid IDL mainly due to missing forwards. Its only switches are the orb connection switches (see Client Switches).
Example:
$ORBRIVER_DIR/bin/print_idl -ORBName OrbRiver_1 # Unix systems
%ORBRIVER_DIR%\bin\print_idl -ORBName OrbRiver_1 !! rem Windows-Nt systems







Email Micro Focus support



Copyright Micro Focus 2002-2014. All rights reserved.