Objective: Save multiple variables in an augment file. On execution, variables in the augment file that already exist in the WebSphere® configuration are not added.
<?xml version="1.0"?>
<Variables>
<RAFW_variables>
<VariableSubstitutionEntry
symbolicName=" MKT_SHARED_LIB_HOME"
value="cell"
>
</VariableSubstitutionEntry>
</RAFW_variables>
</Variables>
RAFW_HOME/user/environments/dev/cells/Cell01/augment/variables_augment.xml
rafw.sh -e env -c cell –augment was_common_configure_variables
Step result: The rafw command creates the custom variable MKT_SHARED_LIB_HOME, assigns it a value of /opt/ibm/sharedLibs/marketing, and adds it to the WebSphere cell configuration.
<Variables>
<RAFW_variables>
<VariableSubstitutionEntry
symbolicName="MKT_SHARED_LIB_HOME"
value="/opt/ibm/sharedLibs/marketing"
>
</VariableSubstitutionEntry>
<VariableSubstitutionEntry
symbolicName="APP_NAME"
value="myApp"
>
</VariableSubstitutionEntry></RAFW_variables>
</Variables>
rafw.sh -e env -c cell –augment was_common_configure_variables
Step result: The rafw command creates the new variable APP_NAME, assigns it a value of "myApp", and adds it to the WebSphere cell configuration.
Because MKT_SHARED_LIB_HOME variable already exists, it is not added to the configuration.
Objective: Save the augment file to a directory name other than augment, if you need to create multiple augment files at the same scope.
<?xml version="1.0"?>
<Variables>
<RAFW_variables>
<VariableSubstitutionEntry
symbolicName="IO_DIR"
value="/opt/ibm/drivers"
>
</VariableSubstitutionEntry>
</RAFW_variables>
</Variables>
RAFW_HOME/user/environments/dev/cells/Cell01/application/variables_augment.xml
rafw.sh -e env -c cell –augment was_common_configure_variables -opt "augmentDir=application"
Step result: Using the application/variables_augment.xml file, the rafw command adds the custom variable IO_DIR, assigns it a value of /opt/ibm/drivers, and adds it to the WebSphere cell configuration.
Objective: Synchronize the cell definition in the environment tree to match the newly augmented configuration in WebSphere. Use this option as an alternative to running import as a separate command to synchronize the cell definition.
<?xml version="1.0"?>
<Variables>
<RAFW_variables>
<VariableSubstitutionEntry
symbolicName="APP_TEMP_DIR"
value="/opt/ibm/tmp"
>
</VariableSubstitutionEntry>
</RAFW_variables>
</Variables>
RAFW_HOME/user/environments/dev/cells/Cell01/augment/variables_augment.xml
rafw.sh -e dev -c cell –augment was_common_configure_variables -opt "importAfterAugment=true"
Step result: The rafw command:
Objective: Create the augment file by using a WebSphere data file that already contains the correct configuration data as a starting point.
In this example, the jdbc_augment.xml file is created using the jdbc.xml file as a model.
Step result: The new data source configuration is added to the jdbc.xml file.
rafw.sh -e integration -c Cell01 -import was_common_configure_datasources
Step result:
RAFW_HOME/user/environments/integration/cells/Cell01/jdbc.xml
Save the jdbc.xml file as jdbc_augment.xml.
RAFW_HOME/user/environments/production/cells/Cell01/augment/jdbc_augment.xml
<?xml version="1.0"?>
<jdbc>
<RAFW_JDBCDataSources>
<DataSource
authDataAlias="dmgr/JAAS - J2C - alias"
authMechanismPreference="BASIC_PASSWORD"
datasourceHelperClassname="com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper"
description="New JDBC Datasource"
diagnoseConnectionUsage="false"
jndiName="data/jndiName"
logMissingTransactionContext="true"
manageCachedHandles="false"
name="DataSource - Oracle JDBC Driver XA DataSource"
properties=""
providerType="Oracle JDBC Driver (XA)"
statementCacheSize="10"
xaRecoveryAuthAlias="dmgr/JAAS - J2C - alias"
>
Additional XML Nodes Requires for DataSource definition have been removed for brevity
</DataSource>
</RAFW_JDBCDataSources>
</jdbc>
rafw.sh -e production -c Cell01 –augment was_common_configure_datasources
Step result: The rafw command adds the new data source in jdbc_augment.xml to the Production environment and assigns it a value of data/jndiName.