How to interpret Login messages for invalid user/service for Java EMA api, We have to handle scen...

...arios for "Closed/Suspect/User unknown to permissioning system, it could be DACS, AAA or EED".
Preparing a server side application to fetch market price using EMA api in JAVA. Creating OMM consumer while the application is getting up . The invalid message is getting logged via ema internal apis but not able to collect it by using any handler
Best Answer
-
@malika.guptaPlease view of the subscriber examples available with Java EMA SDK.
They register status callback handler such as:
public void onStatusMsg(StatusMsg statusMsg, OmmConsumerEvent event)
{
System.out.println(statusMsg);
}The app will receive and can detect a status of
"...state="Closed / Suspect / User unknown ..."
"...state="Closed / Suspect / None / 'Service name of 'YOUR_SERVICE_NAME' is not found.'"
Do you see it?0
Answers
-
Thanks @zoya faberov for the reply.
I am creating connection i.e. consumer object with user and server configuration on application startup and using that connection only, serving multuple requests.
Want to capture the status at the time of creation of consumer object only, how can we do it? And is it fine to do this way, creating consumer only once?0 -
Do you have the status callback registered as shown in the example?
Then in order to test that it is working as expected, please try with
1. Invalid user - see the status trigger
2. Invalid service - see the status trigger.
0 -
Could you please re-test the scenario with EMA Java 1.1.0 (Elektron SDK 3.1.0) which is the latest version? This version has fixed the "Consumer application does not receive denied login message/event" issue. You can use the EMA Java example330__Login__Streaming to verify the issue.
0 -
EMA is a realtime asynchronous API - so can expect to get Status Msgs as and when the status of a stream changes e.g. the Login stream, individual Data Item streams etc.
If you try to connect with an invalid user then you would expect to get a StatusMsg shortly after the connection attempt.
However, once you are up and running it is still entirely possible that you could get StatusMsgs later as and when the state of a stream changes. e.g. if the server connection is lost or an item is closed or if a user is de-permissioned in realtime and so on.
And yes, one Consumer at startup is usually fine for a typical consumer. And a single consumer can be used to register interest for multiple instruments - either by using the Batch facility (example370__MarketPrice__Batch) or by repeatedly calling registerClient for each instrument you wish to consume.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 24 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 713 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
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛