RFA Config editor's function

So I was running the RFA progarms in the examples and I had to use the RFA Configuration Editor to create the Connection and sessions as set in the tutorial.
My question is : what does the config editor do that enables the RFA applications to be read the correct configurations ? Is it updating the windows registry which are then read by the RFA api internally ? Is it setting up systems variables on my host ? I do not see any RFA system variables when I do a set command on my windows console.
Also , how do I use the editor on a server environment like Linux server ? There must be a way for exporting the config created by the editor in a windows host and directly feed the config file to an RFA application without requiring to use the Config Editor explicitly ?
Best Answer
-
Basically, RFA Java uses the Java Preferences API for managing the RFA configuration. The Java Preferences API uses different backing storage for different OS platforms. The configuration data is stored in windows registry on Windows, and in flat files on Unix/Linux (as Zoya mentioned above). Note that Java Preferences API does not use system properties for storing the configuration data.
For graphical enviroment like Windows, the GUI-based Config Editor is easy to use and recommended for setting up the RFA configuration. For terminal-based environment like Linux, command-line based tools, i.e. config_loader.jar, config_exporter.jar, and config_remover.jar, which comes with RFAJ packages in \Tools, can be used to import from an XML file, export to an XML file, and remove the configuration tree, respectively.
To setup the RFA configuration on Linux, you may export the RFA configuration setup on Windows to an XML file using the Config Editor tool (selecting File > Export), and then import the exported file using the command-line based config_loader program. Alternatively, the application can also use Java Preferences API method, i.e. Preferences.importPreferences(file) to import an XML configuration file from a specified path during startup.Alternate to storing configuration data on backing-storage of OS, you may consider populating the RFA configuration database in-memory at runtime by using the RFA library class named ConfigDb, as suggested by Steven. This would allow the application to maintain the configuration consistently across platform without using windows registry or flat files, which some users may not have the permission to access.
0
Answers
-
Yes, on windows, Configuration Editor stores configuration tree into windows registry, under HKEY_CURRENT_USER/software/JavaSoft/Prefs.
Under linux, the editor stores preferences into .java/.userPrefs
Yes, one can export into XML file and then import using Config Editor, File->Export/File->Import.
Yes, one can generate the configuration tree in code, but using the config tool is recommended, as introducing a typo in config code is very easy and can be time-consuming to figure out.
0 -
Java has its little known own configuration database but is very inconvenient to use, it is highly recommended to avoid this and use the programmatic interface to the RFA configuration database (com.reuters.rfa.config.ConfigDb) instead. You then have the option of implementing your own Json, Xml or Java properties wrapper around that.
Note that implementing cross-platform RFA configuration is challenging as each API itself is implemented differently. I prefer the "/" slash paths of RFA/C++ to RFA/Java.
0 -
Please investigate the recently released EMA/Java which uses an XML configuration file with optional programmatic access. With EMA it can be significantly easier to get something working with less than 100 lines of code.
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 中文论坛