<icegrid>

  <application name="Test">

    <server-template id="IceGridNode">
      <parameter name="id"/>
      <parameter name="encoding" default=""/>
      <server id="${id}" exe="${icegridnode.exe}" activation="manual">
        <option>--nowarn</option>

        <property name="IceGrid.Node.Endpoints" value="default"/>
        <property name="IceGrid.InstanceName" value="RepTestIceGrid"/>
        <property name="IceGrid.Node.Name" value="${server}"/>
        <property name="IceGrid.Node.Data" value="${server.data}"/>
        <property name="IceGrid.Node.PropertiesOverride"
                  value="${properties-override} Ice.ServerIdleTime=0 Ice.PrintProcessId=0 Ice.PrintAdapterReady=0"/>
        <property name="Ice.Default.Locator" value="RepTestIceGrid/Locator:default -p 12050:default -p 12051:default -p 12052"/>
        <property name="IceGrid.Node.Trace.Replica" value="0"/>
        <property name="IceGrid.Node.Trace.Adapter" value="0"/>
        <property name="Ice.Trace.Network" value="0"/>
        <property name="Ice.Warn.Connections" value="0"/>
        <property name="Ice.Admin.Enabled" value="0"/>
        <property name="Ice.Override.ConnectTimeout" value="300"/>

        <property name="Ice.Default.EncodingVersion" value="${encoding}"/>
      </server>
    </server-template>

    <server-template id="IceGridRegistry">
      <parameter name="id"/>
      <parameter name="port"/>
      <parameter name="replicaName"/>
      <parameter name="encoding" default=""/>
      <parameter name="arg" default=""/>
      <server id="${id}" exe="${icegridregistry.exe}" activation="manual">
        <option>--nowarn</option>
        <option>${arg}</option>
        <property name="IceGrid.InstanceName" value="RepTestIceGrid"/>
        <property name="IceGrid.Registry.Client.Endpoints" value="default -p ${port}"/>
        <property name="IceGrid.Registry.Server.Endpoints" value="default"/>
        <property name="IceGrid.Registry.Internal.Endpoints" value="default"/>
        <property name="IceGrid.Registry.SessionManager.Endpoints" value="default"/>
        <property name="IceGrid.Registry.AdminSessionManager.Endpoints" value="default"/>
        <property name="IceGrid.Registry.ReplicaName" value="${replicaName}"/>
        <property name="IceGrid.Registry.LMDB.Path" value="${server.data}"/>
        <property name="IceGrid.Registry.PermissionsVerifier" value="RepTestIceGrid/NullPermissionsVerifier"/>
        <property name="IceGrid.Registry.SSLPermissionsVerifier" value="RepTestIceGrid/NullSSLPermissionsVerifier"/>
        <property name="IceGrid.Registry.AdminPermissionsVerifier" value="RepTestIceGrid/NullPermissionsVerifier"/>
        <property name="IceGrid.Registry.SessionTimeout" value="0"/>
        <property name="IceGrid.Registry.DynamicRegistration" value="1"/>
        <property name="Ice.Default.Locator" value="RepTestIceGrid/Locator:default -p 12050:default -p 12051:default -p 12052"/>
        <property name="IceGrid.Registry.Trace.Replica" value="0"/>
        <property name="IceGrid.Registry.Trace.Node" value="0"/>
        <property name="Ice.Trace.Network" value="0"/>
        <property name="Ice.Warn.Connections" value="0"/>
        <property name="IceGrid.Registry.Trace.Locator" value="0"/>
        <property name="IceGrid.Registry.UserAccounts" value="${test.dir}/useraccounts.txt"/>
        <property name="Ice.Admin.Enabled" value="0"/>
        <property name="Ice.Override.ConnectTimeout" value="300"/>

        <property name="Ice.Default.EncodingVersion" value="${encoding}"/>
        <property name="Ice.StdErr" value="${server.data}/stderr.txt"/>
      </server>
    </server-template>

  </application>

</icegrid>
