EMA Webinar Nov 2: Where / How is the data dictionary loaded by the application / EMA API?

In the code examples you showed, where / How was the data dictionary loaded by the application / EMA API?

Best Answer

  • If the question was, where is the code for Loading the Dictionary in the Consumer example I coded during the Webinar, the answer is there was no relevant code in the example. This is because the API loads the dictionary for the developer as one of its high level / default behaviours.

    As mentioned, in the above replies, the developer can manually request a dictionary if required and the config will control whether the dictionary is downloaded from the server(default) or from local files.

Answers

  • If you are asking about how EMA gets the dictionary, for the
    Consumer
    role, by default, the EMA API requests the dictionary from the network (from
    connected component).

    If the EMA Consumer example is
    using EMA Configuration, it can be configured to use local dictionary or
    network dictionary (downloaded from connected component).

    For the non-interactive provider, currently
    it loads only the local dictionary.

  • If the client application would like to receive the dictionary, the client will need to send a dictionary request through registerClient().

    Please refer to consumer example 332_Dictionary_Streaming.