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 30 Next »

A parameter element defines a template parameter. Template parameters must be declared with this element to be used in template instantiation.

This element may only appear as a child of a server-template element or a service-template element.

The following attributes are supported:

Attribute

Description

Required

name

The name of the parameter. For example, if index is used as the name of a parameter, it can be referenced using ${index} in the server or service template.

Yes

default

An optional default value for the parameter. This value is used if the parameter is not defined when a server or service is instantiated.

No

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

XML
<server-template id="MyServerTemplate"> 
    <parameter name="index"/> 
    <parameter name="exepath" default="/opt/myapp/bin/server"/> 
    ...
</server-template> 
See Also
  • No labels