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 |
---|---|---|
|
The name of the parameter. For example, if |
Yes |
|
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:
<server-template id="MyServerTemplate"> <parameter name="index"/> <parameter name="exepath" default="/opt/myapp/bin/server"/> ... </server-template>