Server-Instance Descriptor Element

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

A server-instance element deploys an instance of a server-template element on a node. It may supply additional information such as configuration properties.

This element may only appear as a child of a node element.

The following attributes are supported:

AttributeDescriptionRequired
template
Identifies the server template.
Yes

All other attributes of the element must correspond to parameters declared by the template. The server-instance element must provide a value for each parameter that does not have a default value supplied by the template.

Here is an example to demonstrate the use of this element:

XML
<icegrid>
<application name="SampleApp">
<server-template id="ServerTemplate">
<parameter name="id"/>
<server id="${id}" activation="manual" .../>
</server-template>
<node name="Node1">
<server-instance template="ServerTemplate" id="TheServer">
<properties>
<property name="Debug" value="1"/>
</properties>
</server-instance>
</node>
</application>
</icegrid>