CMW Directory Server

Required to establish connection between a client and a FESA binary. Both need to register at the same CMW directory server in order to establish a connection.

Currently there are two CMW directory servers running, one is only used for productive software and the other one can be used for development purposes. Both servers are connected to a SQL-Database.

A database backend is not necessarily required. If no oracle database is available the CMW directory server produces only log-output into its log-directory.

Settings

An environment variable has to be set for every FESA binary / cmw client in order to identify the correct CMW server.
#development server
CMW_DIRECTORY_CLIENT_SERVERLIST=cmwdev00a.acc.gsi.de:5021

#integration environment server
CMW_DIRECTORY_CLIENT_SERVERLIST=cmwint00a.acc.gsi.de:5021

#productive server
CMW_DIRECTORY_CLIENT_SERVERLIST=cmwpro00a.acc.gsi.de:5021

Usually these variables are set for each FEC during boot by a script:
/common/export/nfsinit/global/fesa_64bit_dev_environment

or
/common/export/nfsinit/global/fesa_64bit_int_environment

or for productive FECs:
/common/export/nfsinit/global/fesa_64bit_pro_environment

If these environment variables are not set, the fallback options are cmw-dir-pro1:5021 and cmw-dir-pro2:5021 which is currently hardcoded in cmw-directory-client.

If a FESA binary using RDA 2.x (4.2.0 and newer) is started without specification of "CMW_DIRECTORY_CLIENT_SERVERLIST", the following error will show up:
FESA.FWK.fesa-core.RDAServer.RDAServer src/fesa-core/RDAServer/RDAServer.cpp:89 ERROR RDA3 : Exception running RDAServer: CMW::DIR Command 'bind' failed: CMW::DIR Cannot find the host 'cmw-dir-pro2.cern.ch'; CMW::DIR Cannot find the host 'cmw-dir-pro1.cern.ch';

If a FESA binary using RDA 1.x is started without specification of "CMW_DIRECTORY_CLIENT_SERVERLIST", the following error will show up:
FESA.FWK.fesa-core.RDAServer.RDAServer src/fesa-core/RDAServer/RDAServer.cpp:89 ERROR RDA3 : Exception running RDAServer: CMW::DIR Command 'bind' failed: CMW::DIR Cannot find the host 'cmw-dir-pro2'; CMW::DIR Cannot find the host 'cmw-dir-pro1';
Topic revision: r7 - 26 Oct 2021, SolveighMatthies
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback