10.02.2013 Views

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 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tailoring Rules<br />

Adjusting Tailoring Rules to Apply When Creating Map Files<br />

You might accept the generic tailoring of this file, choosing instead to adjust the output<br />

maps you create.<br />

But when you find that you are copying and pasting the same variations into every map<br />

you create, you might want to customize the default rules file into variations that you use<br />

under different circumstances. Then, maps that you create are predictable and consistent.<br />

Edit a Copy of the Default Tailoring Rules File<br />

When you add a new service type, you must extend the tailoring rules file to include the<br />

new type and its tailorable parameters. For configuration elements that are listed in the<br />

rules file, you can add parameters for tailoring. Each configuration element’s<br />

configuration file lists its valid parameters. Similarly, if there are parameters in the default<br />

rules file that you never change from one domain to another, you can remove them from<br />

the rules file. The following example describes tuning a map for development references,<br />

adding a service type, and adding a parameter to an existing service type:<br />

1. Copy the <strong>ESB</strong> installation directory’s file, <strong>deploy</strong>/DefaultTailorRules.xml.<br />

2. Save the copied file as sonic_install_dir/<strong>ESB</strong><strong>8.5</strong>/<strong>deploy</strong>/myTailorRules.xml.<br />

3. Edit myTailorRules.xml as follows:<br />

■ “Revising and Extending String Replace Maps” on page 68<br />

■ “Adjusting Dev Service and Dev Endpoint Maps” on page 69<br />

■ “Adding New Service Types” on page 69<br />

■ “Adding Parameters to Existing ServiceTypes” on page 70<br />

■ “Adjusting EndpointRules” on page 70<br />

■ “Adjusting ConnectionRules” on page 70<br />

■ “Adding Property Mapping Rules” on page 71<br />

4. Save myTailorRules.xml.<br />

When you run a CreateMap command (see page 73), use the rules file parameter with the<br />

explicit path sonic_install_dir/<strong>ESB</strong><strong>8.5</strong>/<strong>deploy</strong>/myTailorRules.xml.<br />

The map file that it outputs will reflect your tailoring rules.<br />

<strong>Progress</strong> <strong>Sonic</strong> <strong>ESB</strong> <strong>Deployment</strong> <strong>Guide</strong> <strong>8.5</strong> 67

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!