Tailoring the configuration file

In the WLab directory within webapps, there should be a conf directory. This contains two XML files, application-properties.xml and strings.xml. The former is the main configuration file, which must be edited to suit your environment.

This file is divided into sections:

Apart from the latter section, the configuration sections all follow a similar pattern. As an example, the below is the default authentication section:

<bean id="authenticationAccess" class="org.paulneve.wlab.authentication.AuthenticationAccessLdapImpl">
	<property name="ldapServer" value="192.168.1.7"/>
	<property name="ldapPort" value="389"/>
	<property name="adMode" value="true"/>
	<property name="adDomain" value="demoserver.local"/>
</bean>

THE ONLY PARTS YOU SHOULD CHANGE ARE THE VALUES. Modifying any other part of the file will prevent WLab from starting up. So, for example, you could modify the line

<property name="ldapServer" value="192.168.1.7"/>

to

<property name="ldapServer" value="ldap.myuniversity.ac.uk"/>

but modifying any of the surrounding XML, or any values in the name="..." attributes will cause problems.

Note that any changes to application-properties.xml require a restart of Tomcat before they take effect. We also recommend you back up your application-properties.xml. When upgrading to a new version of WLab, your version of the file will be replaced with the default. If you have no backup, you will have to redo all your changes.

Compulsory configuration settings

These settings are those that almost always MUST be changed before WLab will run in your environment. Following a fresh install, you must configure these before going any further.

General application parameters

Hyper-V server parameters

Data access parameters

Authentication access parameters

Optional configuration settings

General application parameters

Auto suspension parameter

This configuration section is formatted slightly differently to the others:

<bean id="vmSuspender" class="org.paulneve.wlab.utilities.VmSuspender" autowire="byName">
<constructor-arg type="int"><value>10</value></constructor-arg>
</bean>

Only the number between the <value> tags should ever be altered. The value specifies in seconds how often the system will poll for overrunning virtual machines. Increasingly this value reduces server load, but might result in less accuracy. You should increase the value proportionally as the number of likely concurrent VMs increases – a rule of thumb is to make this value double the maximum number of concurrent VMs.