About using the CDT to transform elements

When deploying data from one database instance to another, you can override the values of certain data elements.

For example, if your source and target environment network settings (host names, port numbers, and IP addresses) are different, the Configuration Deployment Tool can transform the settings in order to make them appropriate for the target environment.

Transformations are carried out as a pattern match and replace the data in the source database before it is deployed into the target.

The match and replace are carried out for the complete string literal and no wild card search for characters is allowed.

For example, consider the following configuration XML in the source database:


<SubFlowConfig> 
  <Link>
    <Properties DeliveryMode=""
     InitialContextFactory="weblogic.jndi.WLInitialContextFactory"
     ProviderURL="t3://localhost:7001" QCFLookup="TEST_AGENT_QCF"
     QName="DefaultAgentQueue" TimeToLive=""/>
   </Link>
</SubFlowConfig>

The target database has values for port number as 7221 and QCFLookup as AGENT_QCF, which you do not want overridden by values in the source database. To transform these values, specify the values as described in Table 1.

Table 1. Transforming elements
Element Attribute Value
ProviderURL
  Match Specify 7001 (or 0 to find all occurrences of 0).
  Replace Specify 7221 (or 2 to replace all occurrences of 2).
  XPath xml:/SubFlowConfig/Link/Properties/@ProviderURL
QCFLookup
  Match Specify TEST_ to find all occurrences of TEST_.
  Replace Leave blank to ensure that TEST_ is removed.
  XPath xml:/SubFlowConfig/Link/Properties/@QCFLookup