You can specify dynamic values in a product.xml file, allowing product-specific selections when the product is being configured. This is similar to the dynamic values used in steps (see Using Dynamic Values in Steps in the Creating CIM Plugins chapter).

The following options are available for dynamic values in product.xml files:

  • Property name—Access a property of a particular server instance or server instance type. The syntax for a server instance is:

    ${ServerInstance[SERVER_INSTANCE_ID].PROPERTY_NAME}

    SERVER_INSTANCE_ID is the ID of the server instance.

    PROPERTY_NAME is a property of that server instance (see the Property Files section).

    The syntax for a server instance type is similar, but uses the instance type ID instead of the individual instance ID:

    ${ServerInstanceType[ServerInstanceTypeID].Property_Name}

  • Server instance name—Access the name of the server instance, which is the name of the individual server directory in the <ATG10dir>/home/servers directory. You might think to use ${ServerInstance[ID].name} to retrieve this, but there can be multiple server instances associated with an ID. The syntax is:

    ${ServerInstanceName}

    ServerInstanceName is replaced with the name of the server instance that is currently being processed. This is the only property that changes between instances; use ${ServerInstance[ID].Prop} for all other properties.

  • Application server—Access a property of the selected application server. The syntax is:

    ${AppServerSelection.PROPERTY_NAME}

    PROPERTY_NAME is a property of the AppServerSelection object. For example, ${AppServerSelection.type} returns the currently selected application server type. The available properties are:

    • appServerType—The application server, such as JBoss or WebSphere.

    • drpPort—Recommended default port for the selected app server, not the currently configured port.

    • httpPort—Recommended default port for the selected app server, not the currently configured port.

    • httpsPort—Recommended default port for the selected app server, not the currently configured port.

    • rmiPort—Recommended default port for the selected app server, not the currently configured port.

  • Datasource name and property—Access a datasource property. The syntax is:

    ${NamedDatasource[DATASOURCE_ID].PROPERTY_NAME}

    DATASOURCE_ID is the ID of a named datasource.

    PROPERTY_NAME is a property of that datasource.

A PROPERTY_NAME can also specify sub properties. For example, ${NamedDatasource[nonswitchingCore].datasourceValue.jndiName} returns the JNDI Name from the datasourceValue property of the non-switching datasource.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices