RFA configuration for MRN_STORY

Hello Dev Team,

We are using RFA C++ 8.x (OMM) Linux API to retrieve real news (MRN_STORY).

Below is the configuration in our RFA.cfg file

\Connections\Connection_RSSL\connectionType = "RSSL"

\Connections\Connection_RSSL\rsslPort = "14002"

\Connections\Connection_RSSL\hostName = "new_adsA"

And below is the output of RFA log:

===============================

streamState : Open
dataState : Ok
statusCode : None
statusText : Login accepted by host s6xxxx..
serviceName : IDN_SELECTFEED
symbolName : MRN_STORY
streamState : Closed
dataState : Suspect
statusCode : NotFound
statusText : *The record could not be found.

===================================

To retrive MRN_STORY are additional parameters required in the RFA configuration file? Please advise.

Thank you.

Best Answer

  • Jirapongse
    Answer ✓

    The developer should implement this in the application. There is no RFA configuration for the domain name. The domain name could be specified as application configurations.

    For example, the StarterConsumer example in the RFA package has two configuration files.

    • ExampleRFA.cfg which contains RFA configurations for a connection such as hostName and rsslPort
    • StarterConsumer.cfg which contains application configurations for a service name, and item name

    The StarterConsumer example uses the RFA configuration database class to load StarterConsumer.cfg.

    On the other hand, the example in the tutorial 11 reads application configurations from the command-line parameters.

    Therefore, you can develop an application that loads the domain name configuration from the local file (StarterConsumer.cfg) like the StarterConsumer example by defining a new application configuration for the domain name type.

    For more information, please refer to the StarterConsumer code in the StarterConsumer:Init(...) function.

                //Load the application configuration data
    if (!InitConfig(fileConfig)) return false;
    ReadConfig(appCfgDataBase.ConfigTree);
    LogConfig();

Answers

  • @NWM

    It could be a domain type. The domain for MRN_STORY is the News Text Analytics domain, not the Market Price domain. Please refer to Tutorial 11 - Request and Decode Machine Readable News for more information.

  • Hello Jirapongse,

    Thank you for the reply.

    I checked the tutorial and downloaded the source code.

    The MRN example is under "step 11" directory. And the "exampleRFA" here does not contain reference to NTA domain.

    In which file should the NTA domain be specified?

    Thank you.

  • In the Build and Run section of the tutorial, the domain is specified in the command-line parameters.

    Command-line parameters:
    -u <userName> : Permissioned user name (Mandatory)
    -app <appId> : Permissioned application Id (Optional default = 256)
    -pos <position> : Permissioned position (Optional, default=127.0.0.1/net)
    -m <rdmModel> : name of the RDM model to request (Mandatory)
    -s <serviceName> : Service name to subscribe from (Mandatory)
    -i <itemName> : symbol to request (Mandatory)
    -fd <rdmFieldDict> : Full path and filename of the RDM Field Dictionary
    -ed <enumDict> : Full path and filename of the Enum Tables Dictionary

    For News use "nta" for the "-m" parameter
    Valid values for "-i" include MRN_TRNA, MRN_TRSI and MRN_STORY

    Examples:
    rdmexample -u j.smith -m nta -s EMEA_SAND_ERT_EDGE -i MRN_STORY
    rdmexample -u j.smith -m nta -s EMEA_SAND_ERT_EDGE -i MRN_TRSI -fd "./RDMFieldDictionary" -ed "./enumtype.def"
  • Hello Jirapongse,

    Thanks very much for the example.

    However, for a RFA C++ application that reads connection parameters from RFA configuration file, is there a way to specify the domain name in RFA configuration file or some other file? If so, what is the format of the parameter?

    Thanks.

  • Hello Jirapongse,

    Thank you for the information to resolve this matter. The application was using the default MarketPrice domain, after we changed to NTA, MRN news was able to retrieve.