Change default EMA timeout programmatically ?

it seems the default timeout for EMA Java is 45000 milliseconds, is it possible to change that programmatically?
I did not find anything in OmmConsumerConfig about that.
I am not using EmaConfig.xml and i am creating my OmmConsumer like that:
OmmConsumerConfig config = EmaFactory.createOmmConsumerConfig();
consumer = EmaFactory.createOmmConsumer(config
.host(host)
.username(username)
.applicationId(applicationId)
);
Best Answer
-
Hello @GAUTHIER.ROEBROECK
Unfortunately, EMA Java does not support setting timeout programmatically; you have to set the timeout in EmaConfig.xml. Anyway, EMA Java is open source. Hence, you can modify EMA Java source code to be able to set timeout programmatically. EMA Java source code can be found in <EMA package>\Ema\Src\main
0
Answers
-
Hello @GAUTHIER.ROEBROECK
You can set timeout for login, dictionary, directory and item request in EMA as shown below:
0 -
Request timeout:
For more detail, please refer to <Elektron package>\Ema\Docs\EMAJ_ConfigGuide.pdf
0 -
Hi,
You do not state which timeout you refer to - so I am going to guess the Login Timeout?
If this is the case, please refer to the EMAJ_ConfigGuide.pdf that can be found in the EMA\Docs folder when you unpack the Elektron SDK.
You will note there is a parameter LoginRequestTimeOut which defaults to 45,000 milliseconds - which you can amend. There are other timeout values too such as the Dictionary Request / Directory Request - both of which also default to 45,000ms
You can change these by amending the EMAConfig.xml file.
0 -
Hello @GAUTHIER.ROEBROECK
The example of setting timeout for dictionary, directory, login, item request in EmaConfig.xml:
<Consumer>
<Name value="Consumer_1"/>
<Channel value="Channel_1"/>
<Dictionary value="Dictionary_1"/>
<!-- set dictionary, directory, login and request timeout to be 60 second-->
<DictionaryRequestTimeOut value="60000"/>
<DirectoryRequestTimeOut value="60000"/>
<LoginRequestTimeOut value="60000"/>
<RequestTimeout value="60000"/>
</Consumer>0 -
thanks, but i am actually trying to set the timeout programmatically
0 -
I would like the program to fail early in case of issue, so all the timeouts related to initialization, so i suppose login and dictionnary.
0 -
thanks, but i am actually trying to set the timeout programmatically
0 -
are we able to set the loginRequestTimeout programmatically now. If yes, then how. Can you share an example please
0 -
Hello @anna.h
Please be informed that the answered questions are not be monitored. Please post a new question next time.
About how to get the loginRequestTimeout programmatically, you can add this parameter on the Consumer configurations parameter. The example of programmatic configuration is Cons421 (C++/C#) and ex421_MP (Java) as follows:
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
- 683 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
- 626 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 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
- 84 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛