Configuration of yanel.xml

The file yanel.xml (or previously but deprecated yanel.properties) is the very first configuration file which is read by Yanel if one startups Yanel. It contains global parameters , whereas some of them can be overwritten per realm or per resource (e.g. the mail host) or some of them can be overwritten by using environment variables (e.g. realms.xml).

The productive version of this configuration file is normally located at WEB-INF/classes/yanel.xml.

Examples

<?xml version="1.0"?>

<yanel xmlns="http://www.wyona.org/yanel/1.0" version="2007061900">
  
  <!-- # Realms configuration -->
  <realms-config src="realms.xml"/>
  
  <!-- # ResourceTypes configuration -->
  <resource-types-config src="resource-types.xml"/>
  
  <!-- # Reserved-Prefix configuration -->
  <reserved-prefix>yanel</reserved-prefix>

  <!-- # Scheduler configuration -->
  <scheduler enabled="false"/>

  <!-- # Mail server configuration -->
  <smtp host="mail.foo.com" port="25"/>
<-- INFO: Username and password are optional
  <smtp host="mail.foo.com" port="25" username="foo" password="bar"/>
-->

  <!-- # Target environment configuration -->
<-- INFO: Target environment is optional
  <target-environment>dev</target-environment>
-->

  <!-- # Optional trust-store configuration -->
<--
  <trust-store src="/foor/bar/truststore.jks" password="MY_PASSWORD"/>
-->

  <!-- # Pre-authentication configuration -->
  <pre-auth-request-header enabled="false">SM_USER</pre-auth-request-header>

</yanel>

Note 1: If one is using Yanel from source, then one should edit conf/local/local.yanel.xml rather than conf/yanel.xml.

Note 2: After editing either of these configuration files, Yanel needs to be rebuilt in order to overwrite WEB-INF/classes/yanel.xml (or alternatively one can edit this file directly and just restart Yanel instead, whereas one needs to be aware that the changes are overwritten during the next build).



Your comments are much appreciated

Is the content of this page unclear or you think it could be improved? Please add a comment and we will try to improve it accordingly.