Every DIET entity must connect to the CORBA name server: it is the way services discover each others. The reference to the omniORB name server is written in a CORBA configuration file, whose path is given to omniORB through the environment variable OMNIORB_CONFIG (or, with omniORB 4, at compile time, through the configure script option: -with-omniORB-config). An example of such a configuration file is given in the directory src/examples/cfgs of the DIET source tree and installed in install_dir/etc. The lines concerning the name server in the omniORB configuration file are built as follows:
InitRef = NameService=corbaname::<name server hostname>:<name server port>
NB1: In order to avoid name collision, every agent must be assigned a different name in the name server. SeDs do not necessarily need a name, it is optional.
NB2: Each DIET hierarchy can use a different name server, or multiple hierarchies can share one name server (assuming all agents are assigned unique names). In a multi-MA environment, in order for multiple hierarchies to be able to cooperate it is necessary that they all share the same name server.
The DIET Team - Mer 29 nov 2017 15:13:36 EST