Versions Compared

Key

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

...

Code Block
languagexml
titleExample of a clientConfig.xml with more than 1 connection (multi MC environment)
<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">
        <title>HyFS-RM2018-OC</title>
        <clientType>Operator Client</clientType>
        <otherRootConfigFiles>
				<!-- Since 2021.02: leave out patch.jar here so that the CM / MC patch uploaded via the AdminInterface is used (use bootbuild 2021.02 #106157 or later). --> 
				<!-- <name>patch.jar</name> -->
                <name>fews-splash.jpg</name>
                <name>oc_delft_global.properties</name>
				<name>dashboards.ini</name>
        </otherRootConfigFiles>
        <connection id="mc00_postgresql">
                <databaseServer>
                        <url>jdbc:postgresql://dummy_hostname:5432/mc00</url>
                        <user>dummy_username</user>
                        <password>dummy_password</password>
                </databaseServer>
        </connection>
        <connection id=" mc01_oracle">
                <databaseServer>
                        <url>jdbc:oracle:thin:@dummy_hostname_2:1521:mc01</url>
                        <user>dummy_username_2</user>
                        <password>dummy_password_2</password>
                </databaseServer>
        </connection>
        <connection id="mc02_sqlserver">
                <databaseServer>
                        <url>jdbc:sqlserver://dummy_hostname_3:1433;DatabaseName=mc02</url>
                        <user>dummy_username_3</user>
                        <password>dummy_password_3</password>
                </databaseServer>
        </connection>
        <jvmOption>-Xmn1000m</jvmOption>
        <jvmOption>-Xmx1500m</jvmOption>
        <autoExportModuleDataSet name="HyFS_Help" exportDir="products"/>
        <autoExportModuleDataSet name="AUS_Products" exportDir="products"/>
        <autoExportModuleDataSet name="QLD_Products" exportDir="products"/>
        <autoExportModuleDataSet name="NSW_Products" exportDir="products"/>
        <autoExportModuleDataSet name="SA_Products" exportDir="products"/>
        <autoExportModuleDataSet name="WA_Products" exportDir="products"/>
        <autoExportModuleDataSet name="NT_Products" exportDir="products"/>
        <autoExportModuleDataSet name="TAS_Products" exportDir="products"/>
        <autoExportModuleDataSet name="VIC_Products" exportDir="products"/>
 </clientConfiguration>


Example of a OC with optional synchronization for a single MC when the database url is embedded in the desktop shortcut

Code Block
xml
xml
<?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">
	<clientType>Operator Client</clientType>
	<otherRootConfigFiles>
		<name>oc_global.properties</name>
		<name>fews-splash.jpg</name>
		<name>windowLayout.xml</name>
	</otherRootConfigFiles>
	<jvmOption>-Xmn1000m</jvmOption>
	<jvmOption>-Xmx1800m</jvmOption>
	<directSynchProfile id="direct" name="direct"/>
	<synchProfile id="Full">
		<xmlConfig enabled="true" name="Default xml config" synchLevel="11"/>
		<coldStates enabled="true" name="Default cold states" synchLevel="11"/>
		<moduleDataSets enabled="true" name="Default module data sets" synchLevel="11"/>
		<mapLayers enabled="true" name="Default module data sets" synchLevel="11"/>
		<icons enabled="true" name="Default icons" synchLevel="11"/>
		<reportTemplates enabled="true" name="Default report templates" synchLevel="11"/>
		<reportImages enabled="true" name="Default report images" synchLevel="11"/>
		<continuousTimeSeries enabled="true" name="Scalar time series" synchLevel="1" maxAge="1000" unit="day"/>
		<continuousTimeSeries enabled="true" name="Astronomical data" synchLevel="4" maxAge="1000" unit="day"/>
		<continuousTimeSeries enabled="true" name="Manual" synchLevel="5" maxAge="1000" unit="day"/>
		<continuousTimeSeries enabled="true" name="Small external forecast grids" synchLevel="6" maxAge="2" unit="day"/>
		<continuousTimeSeries enabled="true" name="Performance indicator" synchLevel="8" maxAge="1000" unit="day"/>
		<continuousTimeSeries enabled="true" name="(large) Grid data imported from external forecast" synchLevel="16" maxAge="1000" unit="day"/>
		<forecastTriggeredTimeSeries name="Simulated forecast time series" enabled="true" synchLevel="0"/>
		<warmStates enabled="true" name="Warm states" maxAge="2" unit="day"/>
		<logEntries enabled="true" name="Log Entries" maxAge="10" unit="day"/>
		<thresholdEvents enabled="true" name="Threshold Events" maxAge="10" unit="day"/>
	</synchProfile>
	<synchProfile id="Minimal">
		<xmlConfig enabled="true" name="Default xml config" synchLevel="11"/>
		<coldStates enabled="true" name="Default cold states" synchLevel="11"/>
		<moduleDataSets enabled="false" name="Default module data sets" synchLevel="11"/>
		<mapLayers enabled="true" name="Default module data sets" synchLevel="11"/>
		<icons enabled="true" name="Default icons" synchLevel="11"/>
		<reportTemplates enabled="false" name="Default report templates" synchLevel="11"/>
		<reportImages enabled="false" name="Default report images" synchLevel="11"/>
		<continuousTimeSeries enabled="true" name="Scalar time series" synchLevel="1" maxAge="1000" unit="day"/>
		<continuousTimeSeries enabled="true" name="Manual" synchLevel="5" maxAge="1000" unit="day"/>
		<continuousTimeSeries enabled="true" name="Astronomical and climatological" synchLevel="4" maxAge="1000" unit="day"/>
		<continuousTimeSeries enabled="false" name="Small external forecast grids" synchLevel="6" maxAge="1" unit="day"/>
		<forecastTriggeredTimeSeries name="Simulated forecast time series" enabled="true" synchLevel="0"/>
		<warmStates enabled="false" name="Warm states" maxAge="2" unit="day"/>
		<logEntries enabled="true" name="Log Entries" maxAge="1" unit="day"/>
		<thresholdEvents enabled="true" name="Threshold Events" maxAge="1" unit="day"/>
	</synchProfile>
</clientConfiguration>

jvmOption  (memory settings)

...

Unzips the VIC_Products.zip to %REGION_HOME%/products (d:\fews\fss\1\products ) ( /opt/fews/fss/1/products)

See also: Configuration guide - 01  Module Datasets

truststore

When the ssl certificate issuer used by a https web host mentioned in the FEWS configuration isn't bundled with the (Amazon) java run time you need to create a truststore file.  Unfortunately this will not work when the certificate is used by the database connection itself.

...