EMA Java : -Nameless message with Batch subscription.
NameLessMessage :- We are making snapshot subscription. So all the messages are recieved as part of "Refresh" message or "Status" message callback.
Suppose i made a batch request for "RIC1", i will receive a "Status" msg where message does not have any name and msg.hasName will be "false" followed by the expected "RefreshMsg". I am calling them nameless as they do not have name with them. This can be seen with EMA Batch example "example370_MarketPrice_Batch". Please find below code for the same where i was referring : -
public void onRefreshMsg(RefreshMsg refreshMsg, OmmConsumerEvent event) { System.out.println("Item Name: " + (refreshMsg.hasName() ? refreshMsg.name() : "<not set>")); System.out.println("Service Name: " + (refreshMsg.hasServiceName() ? refreshMsg.serviceName() : "<not set>"));
System.out.println("Item State: " + refreshMsg.state());
if (DataType.DataTypes.FIELD_LIST == refreshMsg.payload().dataType()) decode(refreshMsg.payload().fieldList());
System.out.println(); }
public void onStatusMsg(StatusMsg statusMsg, OmmConsumerEvent event) { System.out.println("Item Name: " + (statusMsg.hasName() ? statusMsg.name() : "<not set>")); System.out.println("Service Name: " + (statusMsg.hasServiceName() ? statusMsg.serviceName() : "<not set>")); if (statusMsg.hasState()) System.out.println("Item State: " +statusMsg.state());
System.out.println(); }
Best Answer
-
Hi @gaurav.mahajan,
I just ran the "example370_MarketPrice_Batch" application as you suggested. I've included the output I'm receiving below where it shows the refresh message containing the name 'TRI.N'.
Are you referring to the initial status message received from the infrastructure after you sent the batch request? Is this the nameless message?
If so, this is normal and expected. It is simply an acknowledge the batch was received. The ADS will process the batch and will attempt to open a series of new requests on your behalf and respond with either a Refresh or Status. It is these subsequent refresh and status messages you should always see a name.
0
Answers
-
Thanks @nick.zincone.1! But this is noticable for Subsequent messages also.
0 -
@gaurav.mahajan Can you please attach the complete output log from the "example370_MarketPrice_Batch" sample and highlight what you think is a nameless message in the updates.
Later on, we might also request you to turn on the OMM message logging for your application.
<XmlTraceToStdout value="1"/>
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛