Configuration parameters and loading Rating Management components
You can use the preload Rating Management components feature and precompile rate routines JAR feature together or separately.
Preload Rating Management components only
In the base configuration, the preload Rating Management components feature is enabled. The
precompile rate routines JAR feature is disabled. The configuration parameters are set to
these values:
- RateBookPreloadEnabled to
true - EnableRateRoutinesJar to
false
When you start the server with only the preload Rating Management components feature
enabled:
- The RateRoutinesJarFile parameter is ignored.
- Rating Management components, including rate routines, are loaded into cache on system startup.
Preload Rating Management components and precompile rate routines JAR file
To use both the preload Rating Management components feature and the precompile rate
routines JAR feature, set the configuration parameters as follows:
- RateBookPreloadEnabled to
true - EnableRateRoutinesJar to
true
When you start the server with both features enabled:
- If the RateRoutinesJarFile parameter points to a valid JAR
file:
-
Then all rate routines in the JAR file are preloaded.
-
If the RateBooksToExportToJar method in the rate book preload plugin returns rate books whose rate routines are not in the JAR file, the JAR file is recompiled. Then the JAR file is preloaded. Because this slows startup time, you are encouraged to avoid this situation.
-
- If the RateRoutinesJarFile parameter points to an invalid JAR
file:
-
PolicyCenter throws an exception and does not start.
-
Precompile rate routines JAR file only
To use only the precompile rate routines JAR file feature, set the configuration parameters
as follows:
- RateBookPreloadEnabled to
false - EnableRateRoutinesJar to
true - RateRoutinesJarFile
When you start the server with only this feature enabled:
- Rate routines are not preloaded.
- The file specified by RateRoutinesJarFile is created if it does not exist. If it exists, it is updated if it is a valid JAR file.
Disable both features
To disable both the preload Rating Management components feature and the precompile rate
routines JAR file feature, set the configuration parameters as follows:
- RateBookPreloadEnabled to
false - EnableRateRoutinesJar to
false
When you start the server with both features disabled:
-
Rate routines are not preloaded.
- The rate routines JAR file is not used to load rate routines and is not updated.
