NIP Session and INT session in one config file
In the TREPS 3 configuration example below, there are 2 sessions defined :-Connection_XTRA_RSSL_INT,Connection_XTRA_RSSL_NIP, which are configured to connect to different servers ads-int.intra and ads-nip.intra
\Sessions\XtraOMMSession\connectionList = "Connection_XTRA_RSSL_INT,Connection_XTRA_RSSL_NIP" \Sessions\XtraOMMSessionContrib\connectionList = " Connection_XTRA_RSSL_NIP" \Adapters\RSSL_Cons_Adapter\singleton = false
\XTRA\Common\RDMFDataDictAccess = "DOWNLOAD"
\XTRA\Common\MfeedDataDictAccess = "LOAD" \Connections\Connection_XTRA_RSSL_INT\connectionType = "RSSL" \Connections\Connection_XTRA_RSSL_INT\rsslport = "14002" \Connections\Connection_XTRA_RSSL_INT\ServerList = "ads-int.intra" \Connections\Connection_XTRA_RSSL_NIP\connectionType = "RSSL" \Connections\Connection_XTRA_RSSL_NIP \rsslport = "14002" \Connections\Connection_XTRA_RSSL_NIP\ServerList = "ads-nip.intra"
Therefore what I want to do is when my application, connecting using the TREPS3 configuration connects, it will make 2 mounts per session, 2 mounts split between different servers.
Does anyone knows how to do this? How to have Session.aquire() can give me a session that is split between two servers?
Thanks
Best Answer
-
Hello @5c9f43d0-0efe-4df2-b156-eea9f0359498
In RFA Java, a single RFA Session can have multiple mounts on different servers by calling Session.aquire(<session_name>) when <session_name>’s connectionList parameter contains multiple connections. Each connection node specifies each server. Hence, when your application runs, the session is split between the connections (connect to the servers) simultaneously.
For example: based on the given configuration, modify [RFA_Java_Package]\QuickStart\quickstart.xml as the steps below:
1. Under myNamespace\Connections node add Connection_XTRA_RSSL_INT and Connection_XTRA_RSSL_NIP connection node:
<node name="Connection_XTRA_RSSL_INT">
<map>
<entry key="connectionType" value="RSSL"/>
<entry key="serverList" value="ads-int.intra"/>
<entry key="portNumber" value="14002"/>
</map>
</node>
<node name="Connection_XTRA_RSSL_NIP">
<map>
<entry key="connectionType" value="RSSL"/>
<entry key="serverList" value="ads-nip.intra"/>
<entry key="portNumber" value="14002"/>
</map>
</node>2. Under myNamespace\Sessions node add XtraOMMSession which connectionList contains Connection_XTRA_RSSL_INT and Connection_XTRA_RSSL_NIP connection node defined in the previous step:
<node name="XtraOMMSession">
<map>
<entry key="connectionList" value="myNamespace::Connection_XTRA_RSSL_INT,myNamespace::Connection_XTRA_RSSL_NIP"/>
</map>
</node>3. Save quickstart.xml. To import the RFA configuration in quickstart.xml into the machine. At [RFA_Java_Package]\Tools, type:
java -jar config_loader.jar -file [RFA_Java_Package]\QuickStart\quickstart.xml
4. Make sure that the application loads the correct session. From the previous steps, the session name which is the input of Session.acquire(..) should be myNamespace::XtraOMMSession. For example:
_session =
Session.acquire("myNamespace::XtraOMMSession");After doing the steps above and running the application, I saw the result which shows 2 mounts split between different servers:
Hope this help.
1
Answers
-
Cheers !! Thank you very much.
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 中文论坛