Enable and configure the precompile rate routines JAR file feature
About this task
Follow these instructions to enable and configure precompiling the rate routines JAR file on the stage/test and production systems.
Procedure
- In Studio, open config.xml.
-
Set the value of the EnableRateRoutinesJar
parameter to
true.Setting this parameter totrue:- Causes the Rate Books screen to display the Generate JAR File and Download JAR File buttons and other user interface elements for creating the rate routines JAR file. If you wish to hide these user interface elements in the production system, you can modify the RateBookSearchScreen.pcf file.
- Enables preloading rate routines from the rate routines JAR file.
- In the RateRoutinesJarFile parameter, specify the path where the rate routines JAR file will be located in PolicyCenter. The recommended name and location is modules/configuration/plugins/Gosu/lib/rateroutines.jar. See Deploying non-OSGi Java classes and JAR files for allowed locations.
-
If you are running on Windows Server:
-
Specify the rate routines update JAR file in the
RateRoutinesUpdateJarFile parameter.
On Windows Server, PolicyCenter updates this JAR file when changes occur in rate books. If you do not specify this parameter, the JAR file is not updated when changes occur. If you run PolicyCenter from Studio, you get and exception and a message that the file is locked by another process.
- Modify the startup process as described in RateRoutinesUpdateJarFile.
-
Specify the rate routines update JAR file in the
RateRoutinesUpdateJarFile parameter.
- Review the base implementation of the RateBookPreloadPlugin plugin implementation and decide whether you will use the base implementation or create your own. You can use the base implementation as a model.
- If you only modified configuration parameters, restart PolicyCenter to pick up these changes. If you changed the RateBookPreloadPlugin plugin, then recompile and restart PolicyCenter.
