question

Upvotes
Accepted
16 12 15 17

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.

elektronrefinitiv-realtimetreprfaOMMmrn
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
78.1k 246 52 72

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();
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
78.1k 246 52 72

@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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
16 12 15 17

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
78.1k 246 52 72

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"
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
16 12 15 17

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
16 12 15 17

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.