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.
0
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 -
Hello @Ethan Wong
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
0 -
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
- 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
- 25 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
- 716 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 中文论坛