Can we set up an RFA Session without using the Config Editor?
Is it possible to use some sort of XML config file to set up the session when using the RFA API?
We will be hosting a service to request Market Data from Reuters on one of our UNIX boxes (could also host on a Windows box if needed) so would be nicer not to have to use the config editor
Best Answer
-
Yes, Java Preferences is a real detriment for most people. If you are are not aware: Java Preferences is what underpins the default configuration mechanism in RFA Java.
You have two options:
You can either use RFA's ConfigDb instead (see Context.initialize(ConfigProvider) method). But ConfigDb class will not give you sleek way to set your values from an XML file.
The better option in your case is to continue to use Java Preferences (=no changes to your application) but let your Java Preferences implementation be one that takes its values from XML files. Have a look at the Preferences2Go Project at GitHub. The front page contains a special note to Thomson Reuters RFA users. This method has the advantage that you can actually change an existing application without having the source code available. Or - if you do have the source - you can just use the method presented in this project. Your XML file format will be the same as the one used by Java Preferences, so you can use the RFA Config Editor to create your initial XML config file (just to get a quick start) and then never have to use the Config Editor again.
1
Answers
-
Ah I see, thanks for the help !
So would using the ConfigDb be the best way forward? (also, is there documentation on usages of ConfigDb)?
0 -
As mentioned: if you use ConfigDb then you have to write some code yourself to read from XML file into your ConfigDb object. If using Preferences2Go you'll get that part for free.
0 -
You can find the example source code of ConfigDb in section 9.3 Config Package of RFA Java Developer Guide
RFAJ provides config_loader.jar in <rfa package>/Tools to import RFA JavaXML config file into Java Preferences database for setting up RFA Session. For example:
java -jar config_loader.jar -file ../QuickStart/quickstart.xml
Note: quickstart.xml is an example of RFAJ configuration file shipped with RFA package for OMM interfaces
To export RFA configuration in Java Preferences database as an xml file, you can use config_exporter.jar as example below:
java -jar config_exporter.jar -user -path com -file rfaj_config.xml
1 -
This is indeed a third option. Must admit I wasn't aware of it. There are two things to note about this solution:
- You'll have execute the above command every time you start your application. It will take whatever is in your XML file, it won't properly sync nodes, just overwrite what is already there.
- It still uses the classic Java Preferences backingstore so you've essentially accomplished nothing, IMO. Your application will still be subject to mysterious backingstore errors and the true source for the config will still be what is in Registry/Hidden files, not what is in your XML file.
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 中文论坛