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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3: Mapping <strong>ESB</strong> Artifacts to Target Domains<br />

For example, the following code sample is an end-to-end script that exports from a<br />

domain under defined roots, applies its defined map, produces several analysis reports,<br />

and then imports into a defined target domain using defined import rules:<br />

connect Domain1 releaseManager:2506 Administrator Administrator<br />

export archive c:\dev.xar c:\exportProperties.xml<br />

disconnect<br />

applyMap c:\dev.xar c:\2\map1.xml c:\2\mapped1.xar c:\2\mapped2_log.xml<br />

diff -xar c:\dev.xar -xar c:\1\mapped2.xar -out c:\2\vDiff_xar_xar2.xml -v<br />

diff -xar c:\dev.xar -xar c:\1\mapped2.xar -out c:\2\tDiff_xar_xar2.xml<br />

mqdepends -xar c:\2\mapped2.xar -out c:\2\mqDepends.xml<br />

mqrevdepends -xar c:\2\mapped2.xar -out c:\2\mqRevDepends.xml<br />

connect Domain2 StageTwo:2526 Administrator StageTwoPassword<br />

impact -xar c:\2\mapped2.xar -out c:\2\tImpact_XAR2_DS2.xml<br />

-ds Domain2 StageTwo:2526 Administrator StageTwoPassword<br />

impact -xar c:\2\mapped2.xar -out c:\2\vImpact_XAR2_DS2.xml<br />

-ds Domain2 StageTwo:2526 Administrator StageTwoPassword -v<br />

import archive c:\2\mapped2.xar c:\2\2_import.xml<br />

disconnect<br />

bye<br />

That series of commands in <strong>Sonic</strong> <strong>ESB</strong> Admin Tool syntax, when saved as a text file such<br />

as End2End.txt, lets you create a script file that pipes in the command sequence, such as:<br />

C:\<strong>Sonic</strong>\<strong>ESB</strong><strong>8.5</strong>\bin\<strong>esb</strong>admin < c:\2\End2End.txt<br />

Once defined, the sequence of steps in the illustration on page 61 can be scripted. The<br />

script overlaying the image in the following illustration shows an end-to-end development<br />

to <strong>deploy</strong>ment process that is reliable, consistent, and fully documented:<br />

Workbench<br />

Domain<br />

- <strong>ESB</strong> Artifacts<br />

- <strong>Sonic</strong>FS files<br />

Directory<br />

Service<br />

Exported <strong>Deployment</strong> Archive<br />

Analysis of Directory Services,<br />

archives, and file stores<br />

Differences<br />

Impact analysis<br />

<strong>Sonic</strong>MQ dependencies<br />

<strong>Sonic</strong>MQ reverse dependencies<br />

Scripted Export Procedure, Mapping, and Import<br />

<strong>Deployment</strong><br />

Domain<br />

Directory Service<br />

Import tailored<br />

archive<br />

- Connect to the Workbench Domain.<br />

- Export archive using the previously defined export properties<br />

Mapped Archive<br />

- Disconnect. Export<br />

D<br />

archive<br />

C<br />

E<br />

- Apply the map that was previously defined to map the exported archive for this <strong>deploy</strong>ment domain.<br />

Edit Map<br />

- Output the map log fileCreateMap<br />

A<br />

Parameters for<br />

Apply Map<br />

- Generate a report that for shows Archive the differences between thie exported archive and the mapped archive.<br />

Target Domain<br />

- Generate a report that shows the <strong>Sonic</strong>MQ dependencies in the mapped archive.<br />

- Connect to the <strong>deploy</strong>ment domain Map File Edited Map File<br />

- Generate a report that shows Bthe<br />

impact of the mapped archive on this <strong>deploy</strong>ment domain.<br />

- Import into the <strong>deploy</strong>ment domain Tailoring using Rules the preeviously definred import rules.<br />

- Output the import log file.<br />

- Disconnect.<br />

- End the script.<br />

Tailoring and Map export archive<br />

Import Log File<br />

Map Log File<br />

82 <strong>Progress</strong> <strong>Sonic</strong> <strong>ESB</strong> <strong>Deployment</strong> <strong>Guide</strong> <strong>8.5</strong><br />

G<br />

H<br />

F

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

Saved successfully!

Ooh no, something went wrong!