![]() ![]() ![]() ![]() |
To simplify the task of creating multiple copies of Java processes in a service, WLOC provides the capability to define the common characteristics of the process in a template, and to use variables to replace common parameters. You can then use the template to generate multiple copies of the process without having to physically configure duplicates in the metadata configuration. When you create the template, you define the following:
Note: The number of values that you specify in the variables must be equal to the number of copies to be created.
To take advantage of the variable definitions, you can insert
variable references into certain attributes of the
jvm-instance
definition. You can specify variables for
the following attributes:
<JavaArgs>
<JvmArgs>
<InstanceDir>
<Host>
<Port>
<JmxServiceUrl>
To define variables for a JVM process:
The JVM variables that are currently defined are displayed.
To modify an existing JVM variable, click on its name in the Variable table.
Field | Description |
---|---|
Name |
Enter a name for the JVM variable. |
Value |
Enter the value of the JVM variable. There are two kinds of variables:
|
The variable is saved and the following confirmation is displayed:
New JVM Variable created
After you finish
To delete variables, select the variable that you want to delete from the Variable Properties table and click Delete.
![]() |