Home > FAQ > System > ProAdmin INI settings > [RepositoryTokens]

[RepositoryTokens]

This section is applicable only to ProAdmin Server.

When running ProAdmin Server, you may use the [RepositoryTokens] section to optionally specify alternative repositories to use for certain calculations (e.g., one repository for production calculations and another repository for testing new changes). If you use repository tokens, then you must specify a default repository token (e.g., DefaultRepositoryToken=Production) which always corresponds the repository file specified in the [Server] section of the Server's ProAdmin.ini file (i.e., [Server] ServerFile). The additional tokens uniquely name the alternative repositories and indicate each alternative repository's filename with path (e.g., TestingRepos=C:\RepositoryFiles\Testing\ReposForTesting.sf)

Each repository token (including the DefaultRepositoryToken) is case independent, must be at least 3 character long, duplicate token names are not allowed, and can't contain special XML characters (e.g., <, &, &amp;).

Here is a sample repository token section:

[RepositoryTokens]
DefaultRepositoryToken=Production
; looks to [SERVER] ServerFile for the repository file
DEV=C:\WinTech\ProAdmin3_12\ActiveWebDevRepository.SF
TST=C:\WinTech\ProAdmin3_12\ActiveWebDevRepository.SF
NewDev=C:\WinTech\ProAdmin3_12\ActiveWebDevRepository2.SF

 

To invoke the use of an alternate repository for a calculation, you must specify a <ProAdminRepositoryToken> tag in your input xml immediately after the root tag (as specified in the user's input xml schema).  If <ProAdminRepositoryToken> exists in the input xml, the initial tag <ProAdminRepositoryToken> must be within the first 1000 characters of the input file (to speed up the search for <ProAdminRepositoryToken>).  For example,

<user's root tag name>

  <ProAdminRepositoryToken>DEV</ProAdminRepositoryToken>
  ...
</ user's root tag name >

The <ProAdminRepositoryToken> tag is optional. When it doesn't exist the  repository file specified by [Server] ServerFile will be used (i.e., the DefaultRepositoryToken will be assumed and used). Thus, when you want to use the repository specified in [Server] ServerFile, you can either specify the <ProAdminRepositoryToken> tag with the default token, or not set the the tag.