How to customize the WebRatio.properties file

by Lucio Bordonaro
5,552 views Published on May 28, 2013
Applies to: 7.2 , 8.0
Table of contents

Introduction

WebRatio provides some properties that define the information reguarding the runtime of your web application. RTXConfig.properties file is the properties file where you can configure your preferences. The RTXConfig.properties file contains information that control your work directory where the application is deployed, the upload directory where the uploaded files are stored, the log directory where the log files are stored and the report directory where the report templates are stored.

How to customize name and path

To configure the Web application so that it uses a properties file stored in a folder different from the default one you need to set the values for some variables.

In the RTXConfig.properties file write:

  • externalPropertyDirectoryJVMArg=extConfFolder
  • externalPropertyFileName=[name].properties

 

In the Catalina.bat file of the deployment server write:

  • set JAVA_OPTS=-DextConfFolder=[absolute path for the properties file]

In this way at the server startup, the file is searched inside the specified folder using the desired name.

In a similar way you can manage also log configuration files.

 

In order to do this, in the RTXConfig.properties write:

  • externalLogPropertyDirectoryJVMArg=extConfFolder
  • externalRTXLogPropertyFileName=RTXLogConfig.properties
  • externalStrutsLogPropertyFileName=StrutsLogConfig.properties

And in the Catalina.bat of the deployment server write:

  • set JAVA_OPTS=-DextConfFolder=[absolute path for the log configuration file]

Example

RTXconfig.properties:

externalPropertyDirectoryJVMArg=extConfFolder

externalPropertyFileName=Acme.properties

 

Catalina.bat:

set JAVA_OPTS=-DextConfFolder=c:\Tomcat\conf\apps\

The loaded file is: c:/Tomcat/conf/apps/Acme.properties.

 
 

Related Learning Objects