Creating configurations and setting the active configuration

The configuration file has the ability to support multiple configurations, however, only one of the configurations is active at any point in time. All of the high-level elements in the configuration file contain an optional configuration attribute. This attribute applies to the element and its children. This is compared to the activeConfiguration attribute of the AgentControllerConfiguration element. Only if the configurations have the same name, or if there is no configuration specified, will the element and its children be loaded into the Agent Controller configuration. The following high-level elements support configurations:

In the following example of code from the serviceconfig.xml file, each of the different types of elements (hosts and agents) has the configuration attribute set to "default".

<Hosts configuration="default">
    <Allow host="LOCAL" />
</Hosts>
<Agent configuration="default" name="WAS Activity Log Agent" type="Logging">
    <Option type="environment" name="WAS_HOME" value="%WAS_HOME%" />
</Agent>

For more information on the Java Profiling Agent, refer to the documentation on the Profiling tools.

Related tasks
Administering the Agent Controller