How to connect to TREP using EMA
Hi,
The company where i'm working on are using E.T 2.0 application. my user what to get rates just like what they see in ET 2.0 application. After we discus with thomsonereuters representative in my country they suggest you can connect to TREP using EMA.
I have already download this Elektron-SDK1.0.8.java_0.zip, how to start new EMA project? what lib to include to create new java project? and how do i have to manage my project folder structure?
Thanks in advance.
Best Answer
-
You can start with:
- Quick Start - It explains setup and configuration, build and run the consumer example application in EMA package.
- EMA Consumer Tutorials - It explains how to establish an EMA build environment, develop EMA application to consume data step by step with the example source code.
For account/server information that your EMA application should connect to, please contact Thomson Reuters account team/representative.
0
Answers
-
Ok, i will try it first. Thanks Pimchaya.Wongrukun
0 -
I'm following tutorial EMA Cunsomer, when i try to run "example100__MarketPrice__Streaming.ksh", i got this error. What am i missing? Thanks.
Mar 08, 2017 4:03:11 PM com.thomsonreuters.ema.access.ConfigErrorTracker log
INFO: loggerMsg
ClientName: EmaConfig
Severity: Info
Text: reading configuration file [EmaConfig.xml] from [/app/ret/permatabank/Elektron-SDK1.0.8.java/Ema/Src/examples]
loggerMsgEnd
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:635)
at java.util.ArrayList.get(ArrayList.java:411)
at com.thomsonreuters.ema.access.ChannelCallbackClient.reactorChannelEventCallback(ChannelCallbackClient.java:366)
at com.thomsonreuters.upa.valueadd.reactor.Reactor.sendChannelEventCallback(Reactor.java:721)
at com.thomsonreuters.upa.valueadd.reactor.Reactor.sendAndHandleChannelEventCallback(Reactor.java:730)
at com.thomsonreuters.upa.valueadd.reactor.Reactor.processChannelUp(Reactor.java:2137)
at com.thomsonreuters.upa.valueadd.reactor.Reactor.processWorkerEvent(Reactor.java:1980)
at com.thomsonreuters.upa.valueadd.reactor.Reactor.dispatchChannel(Reactor.java:1403)
at com.thomsonreuters.upa.valueadd.reactor.ReactorChannel.dispatch(ReactorChannel.java:426)
at com.thomsonreuters.ema.access.OmmBaseImpl.rsslReactorDispatchLoop(OmmBaseImpl.java:1002)
at com.thomsonreuters.ema.access.OmmBaseImpl.handleLoginReqTimeout(OmmBaseImpl.java:878)
at com.thomsonreuters.ema.access.OmmConsumerImpl.handleAdminDomains(OmmConsumerImpl.java:359)
at com.thomsonreuters.ema.access.OmmBaseImpl.initialize(OmmBaseImpl.java:226)
at com.thomsonreuters.ema.access.OmmConsumerImpl.<init>(OmmConsumerImpl.java:33)
at com.thomsonreuters.ema.access.EmaFactory.createOmmConsumer(EmaFactory.java:158)
at com.thomsonreuters.ema.examples.training.consumer.series100.example100__MarketPrice__Streaming.Consumer.main(Consumer.java:57)0 -
attached consumer code
0 -
Could you attach EmaConfig.xml which is in /app/ret/permatabank/Elektron-SDK1.0.8.java/Ema/Src/examples?
0 -
I can reproduce the problem by connecting to TREP which does
not provide component version. After EMA connects to TREP, it tries to get TREP
component version. If it fails, the exception is thrown.According to EMA README, it requires TREP 2.4 or higher.
Hence, your TREP should be upgraded or you should connect to another TREP which
version is 2.4 or higher.0 -
Should i download lower version of EMA lib?
0 -
Hello @geoffrey.laurens
No. All EMA versions require TREP 2.4 or higher. I have checked TREP product and found that TREP2.4 has been end of life(no longer supported) as well. Hence, you should upgrade your TREP to version 2.5 or higher.0 -
I already ask thomsonereuters representative in my country about the TREP version, he said that my company using TREP 2.4. It means, i even can't downgrade the EMA library to lower version? If that so, then i will discuss it first with them...
0 -
Hello geoffrey.laurens
You should upgrade TREP as it has been end of life and no longer support when the problem occurs with it. Please discuss with
thomsonreuters representative for new TREP version that you should upgrade to.
0 -
Hi,
If documentation(README) said this that it means no problem right if i am using this downloaded EMA api to connect to TREP 2.4?
---------------------------------------------------------
Enterprise Platform for Real-Time - RSSL/RWF connections
---------------------------------------------------------
- ADS 2.4 or higher
- ADH 2.4 or higherThanks.
0 -
Yes. I can use EMA to connect to TREP 2.4 and get data. EMA can get ADS version and data:
Mar 13, 2017 10:40:48 AM com.thomsonreuters.ema.access.ChannelCallbackClient reactorChannelEventCallback
INFO: loggerMsg
ClientName: ChannelCallbackClient
Severity: Info
Text: Received ChannelUp event on channel Channel_1
Instance Name Consumer_1_1
Component Version ads2.4.0.L1.solaris.rrg 32-bit
loggerMsgEnd
RefreshMsg
streamId="5"
domain="MarketPrice Domain"
solicited
RefreshComplete
state="Open / Ok / None / 'All is well'"
itemGroup="00 01"
permissionData="03 0f d7 65 62 c0"
name="TRI.N"
serviceId="4055"
serviceName="API_BOMBAY_RDF"
Payload dataType="FieldList"
FieldList FieldListNum="79" DictionaryId="1"
FieldEntry fid="1" name="PROD_PERM" dataType="UInt" value="6562"
FieldEntry fid="2" name="RDNDISPLAY" dataType="UInt" value="64"
FieldEntry fid="3" name="DSPLY_NAME" dataType="Rmtes" value="THOMSON REUTERS"
FieldEntry fid="4" name="RDN_EXCHID" dataType="Enum" value="2"
FieldEntry fid="6" name="TRDPRC_1" dataType="Real" value="43.19"
FieldEntry fid="7" name="TRDPRC_2" dataType="Real" value="43.19"You can check ADS version by running adsmon on ADS machine. Then, select "Process Statistics", the releaseVersion which EMA get is shown:
However, if ADS version is lower than 2.4 which EMA does not support.
"Process Statistics" of ADS does not have the releaseVersion:
0 -
Sorry Pimchaya.Wongrukun,
I just get an update from thomsonereuters representative in my country, he said that my company are using TREP version 2.2. So i can't test this example. He said they will upgrade TREP to 2.6. Sorry for the mistake. Thanks by the way.
0
Categories
- All Categories
- 6 AHS
- 38 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 中文论坛