Programmaticaly configured OmmConsumerConfig

I programmatically set up OmmConsumerConfig and try to use it to connect to the server, but get errors (System errno: (10057) - Socket is not connected):
loggerMsg
TimeStamp: 16:36:09.056
ClientName: ChannelCallbackClient
Severity: Warning
Text: Received ChannelDownReconnecting event on channel <Channel_name (same as host:port)>
Instance Name Consumer_1_1
RsslReactor 0x00000000052E2F40
RsslChannel 0x00000000052E2F40
Error Id -1
Internal sysError 10057
Error Location ...\rsslReactorWorker.c:676
Error Text <...\rsslSocketTransportImpl.c:5771> Error: 1002 ipcConnecting() client connect() failed. System errno: (10057)
loggerMsgEnd
The remote server is available (telnet successfully connects to it). Host and port are provided through ChannelSet parameter.
I am unable to analyze the correctness of the generated data structure for OmmConsumerConfig, since the EMA C++ API does not allow that due to the limitations of the EMA containers (The EMA does not support immediately retrieving data from freshly created OMM containers or messages).
What shold i do?
Best Answer
-
And so, it was found out that the connection was not established because of not explicitly specified parameter ChannelType. For this parameter, the documentation specifies the default value of SSL_SOCKET(0). But for programmatic configuration default value is not supported.
0
Answers
-
It's difficult to troubleshoot the issues within your application without any code snippets. What I would do first is go through the EMA C++ tutorials, in particular the EMA Consumer - MarketPrice data which show basic usage of OmmConsumerConfig, i.e:
0 -
Ok, code snippet attached
I have no way to check if the generated configuration structure is correct, but in the log I found suspicious entries:
loggerMsg
TimeStamp: 11:35:23.183
ClientName: EmaConfig
Severity: Verbose
Text: could not get value for item [ConsumerGroup|ConsumerList|Consumer.OmmConsumer|ChannelSet]; will use default value if available
loggerMsgEndloggerMsg
TimeStamp: 11:35:23.184
ClientName: EmaConfig
Severity: Verbose
Text: could not get value for item [ChannelGroup|ChannelList|Channel.<channel_name>|ChannelType]; will use default value if available
loggerMsgEnd
loggerMsg
TimeStamp: 11:35:23.184
ClientName: EmaConfig
Severity: Verbose
Text: could not get value for item [ChannelGroup|ChannelList|Channel.<channel_name>|Host]; will use default value if available
loggerMsgEnd.. and many more ...
all these parameters are configured in the code (see attached file)
0 -
Ok, thanks for clarifying what you are doing in the code snippet. So you are programmtically configuring your application. It's unclear from your original question whether you were successfully able to connect and receive data from your ADS when you stated:
"The remote server is available (telnet successfully connects to it). Host and port are provided through ChannelSet parameter".
I suggested the EMA Consumer - MarketPrice data as a quick test to ensure you can connect using EMA and receive data. Please ensure you can.
Assuming that all goes well, I would then try the example application called: 421__MarketPrice__ProgrammaticConfig example within the Training section (400_Series) in the downloadable package. That example is performing all the configuration steps necessary to do what you need to do and should work. If you can get that going, that should hopefully guide you in understand the difference between that training example and your application.
Hope this helps.
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 629 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 86 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛