Setting a Property Value
You can set a property value in the GUI or by using the CLI. You can set a property value to a constant, a substitution variable, or the name of a resource instance available on the node on which an application is deployed.
To bind a property
value to a substitution variable, you can set the value to
%%variableName%%, wherevariableName is
the name of the substitution variable.
GUI
- Procedure
- Select the node where the application is deployed.
- Click Applications and select an application.
- Click the Properties tab and click the Editable Properties link.
- Click the plus (
) next to a property owner.
The owner's properties and their associated values display. - Click a property row in the Value column.
The value is enabled for input.
- Specify a value according to the property type.
Property Type Procedure Simple Type a value or substitution variable string. Resource Instance You can specify a resource instance in several different ways. - Type a value or substitution variable string.
- Select an
existing resource instance.
- Click the
icon. The Lookup Resource Instance dialog displays.
- In the Hosts column, choose a node.
- In the Instances column, choose a resource instance.
- Click Save.
- Click the
- Create a new
resource template.
- Click the new link. The Add Resource Template dialog displays.
- Complete the
dialog and click
Save. The property value is
filled in with the name of the resource template.
Note: When you create and install a resource instance of a referencing resource template, a resource instance with the same name as the referenced resource template is instantiated and installed on the same node. For example, if you create and install an SSL Client Provider resource instance, the Keystore Provider reference is created and installed.
- Click
Save.
The property value is updated in the database.
- Click Refresh.
The value in the Synchronization column changes to Out of Sync.
- Click
Deploy.
The property value is updated in the runtime and the Synchronization column changes to In Sync.
CLI
- Procedure
- In the data file specify a Property
definition in full format. Nest the
Property
element under anApplication
element.<Property xsi:type="amxdata:Property" name="propertyName" value="propertyValue"/>
- In the build file set the
action
attribute of the
AMXAdminTask element to
edit and
the
objectSelector attribute to
//Application/Property.
<AMXAdminTask action="edit" objectSelector="//Application/Property"/>
- Invoke the command-line interface on the build file.