Documentation for Ice 3.5. The latest release is Ice 3.7. Refer to the space directory for other releases.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

A server-template element defines a template for a server element, simplifying the task of deploying multiple instances of the same server definition. The template should contain a parameterized server element that is instantiated using a server-instance element.

This element may only appear as a child of an application element.

The following attributes are supported:

Attribute

Description

Required

id

Specifies the identifier for the server template. This identifier must be unique among all server templates in the application.

Yes

A template may declare parameters that are used to instantiate the server element. You can define a default value for each parameter. Parameters without a default value are considered mandatory and values for them must be supplied by the server-instance element.

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"/>
        </node>
    </application>
</icegrid>
See Also
  • No labels