Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Install a Fews bin directory and Region Home directory as you would for an Operator Client. Make sure these directories are accessible from the Tomcat installation. In the Region Home directory copy the files 'clientConfig.xml' and 'log4j.properties' shown below. Change the values in example to match the values of your system.

clientConfig.xml:

_

Code Block

<?xml version="1.0" encoding="UTF-8"?>

<clientConfiguration xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/clientConfig.xsd">

    <databaseServer>                             

        <!—Keuze uit: postgresql, oracle of sqlserver -->

         <dbServerType>postgresql</dbServerType>                              

         <dbServerName>db_serverhostname</dbServerName>

         <dbServerPort>db_port </dbServerPort>

         <dbInstanceName>database name</dbInstanceName>

         <dbInstanceUser>user</dbInstanceUser>

         <!-- <dbInstancePassword>clear text password</dbInstancePassword> -->

         <dbInstanceEncryptedPassword>encrypted password</dbInstanceEncryptedPassword>

       </databaseServer>

</clientConfiguration>

log4j.properties

Code Block

# This configuration file should be placed in the FEWS region home directory in order for DAC to load it.
# Change the <region_name> to match name of actual region.
log4j.debug=true
log4j.rootLogger=INFO, DAC

# Define all the appenders
log4j.appender.DAC=org.apache.log4j.DailyRollingFileAppender
log4j.appender.DAC.File=${catalina.base}/logs/DAC_<fews_home_dir>.log
log4j.appender.DAC.Append=true
log4j.appender.DAC.Encoding=UTF-8
# Roll-over the log once per day
log4j.appender.DAC.DatePattern='.'yyyy-MM-dd'.log'