Skip to main content

Configuration Properties and property files

For details, see Properties Location: mr-application/src/main/resources

Spring annotations

Data Files

You will need to specify where your CSV files are placed. In the default implementation, the CSV files are required to provide Atoti Server with the necessary data and configuration to do the calculations in Atoti Market Risk. All the files need to be kept under one directory of your choice anywhere on the file system. The path to this directory needs to be specified with the mr.data-load.csv.dataset property. The below property needs to be updated to specify an accessible directory containing the necessary files. Sample files can be found in the mr-application/src/main/resources/data folder.
Files in this folder are excluded from the mr-application JAR.
To get started with deployment (e.g. if you are not running the application directly from the IDE) you can easily copy/paste the whole sample data folder (from source zip) into somewhere accessible by your deployed runtime, and change the configuration in application.yaml accordingly to point to that data.

Local Content Server

When using the local-content Spring profile automatically activated in the application.yaml file, Atoti Market Risk defaults to an in-memory content server with an H2 database. The core Atoti Market Risk bookmarks are imported to this server at startup. To set different bookmarks, please see the section below. To use a different local database for the content server, modify the following properties in the application.yaml file:
  • To connect to an H2 database, set the mr.application.content-server.db.file.name property, specifying the path to the database file, relative to the classpath.
  • To connect to a database that is not H2, set the mr.application.content-server.db.url property, specifying the JDBC URL of your database.

Bookmarks

If you want to replace the bookmarks you have persisted in your content server, there are several options for overriding the content of the content server with the core Atoti Market Risk bookmarks at startup. The behavior of the bookmark reset is driven by the contentServer.factory-reset group of properties in the application.yaml file. The mr.application.content-server.reset property determines whether the reset is performed, and from which persistence type. Available options are:
  • true: Imports data from a single JSON file
  • file: Same as for true
  • folder: Imports the bookmarks from a folder-based hierarchical representation of the Atoti UI bookmark tree.
  • false: Does not reset the bookmarks. The bookmarks are loaded directly from the content server without any modification.
The location from which Atoti Market Risk will attempt to load the various options is determined by the factory reset filename (mr.application.content-server.factory-reset.filename) and folder name (mr.application.content-server.factory-reset.folder-name) properties. The default values point to sample files on the classpath. Due to the inability to load classpath files or folders from a JAR file, running the application via the SpringBoot JAR will require overriding the property via the CLI argument:
The bookmark samples for Atoti Market Risk can be found within the UI release files, containing bookmarks for the VaR-ES, Sensitivities, PnL, and MRCombined Cubes.

Atoti UI

You will need to specify in the Atoti UI configuration file where the Atoti Server project is running. Please note, the end-user’s browser will be connecting to the URL you specify here, so you should specify the exact host name as opposed to localhost. The standalone application contains an mr_env.js file which will need to be updated with the correct server URL: