esb_deploy - Progress Sonic ESB Deployment Guide 8.5 - Product ...
esb_deploy - Progress Sonic ESB Deployment Guide 8.5 - Product ...
esb_deploy - Progress Sonic ESB Deployment Guide 8.5 - Product ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Chapter 3: Mapping <strong>ESB</strong> Artifacts to Target Domains<br />
Revising and Extending String Replace Maps<br />
The stringReplaceMaps section, by default, removes workspace from the sonicfs paths.<br />
You can tune this line if, for example, you routinely want the <strong>deploy</strong>ed files from a<br />
development workspace to map to a directory structure named com.myCorp, as follows:<br />
<br />
Important Always replace the name workspace — While you can revise the string replacement of<br />
sonicfs: path references from workspace to no name or any specified name, you should<br />
never leave the name workspace in a <strong>deploy</strong>ment configuration as it might trigger<br />
behaviors not intended for <strong>deploy</strong>ment environments.<br />
You can extend the stringReplaceMaps section to include multiple steps. The added steps<br />
must each have an order parameter set to an incrementing integer value. As shown in the<br />
following code segment, the stringReplaceMap line where order=”1” is evaluated first,<br />
then the result is recursed with the line where order=”2”. After the sequence has been<br />
completed, the default stringReplaceMap applies, as shown:<br />
<br />
<br />
<br />
<br />
If you use order steps you must have one instance of each sequential step, but the listing<br />
of the steps need not be in order.<br />
References within files — String mappings also apply to strings within files, even if they<br />
are packaged within the XAR (such as a CSAR package). You need to be careful in raw<br />
string replacements to qualify your search string, and to avoid mapping key words, fixed<br />
namespaces, and related artifacts by string replacement. This feature is most useful for<br />
replacing URLs and references. For example, the following line might be for mapping<br />
references to targets used in the test environment:<br />
<br />
68 <strong>Progress</strong> <strong>Sonic</strong> <strong>ESB</strong> <strong>Deployment</strong> <strong>Guide</strong> <strong>8.5</strong>