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 2: Exporting <strong>ESB</strong> Artifacts for <strong>Deployment</strong><br />

Using Scripted Builds to Export <strong>ESB</strong> Artifacts<br />

Using scripted builds is a streamlined, reliable way to extract <strong>ESB</strong> artifacts for<br />

<strong>deploy</strong>ment. You specify the source locations you want to evaluate for <strong>ESB</strong> artifacts, and<br />

the target location for the output of the export process. Scripted builds have advantages<br />

and limitations.<br />

The advantages of scripted builds are:<br />

● They are applied against source control repository branches so that all checked in<br />

developer files are accessed concurrently and branches can be locked.<br />

● Ant build syntax and operations are familiar to build managers.<br />

● They do not require a running <strong>Sonic</strong> domain.<br />

● The build files and supporting properties files can be abstracted from the <strong>Sonic</strong><br />

Workbench install location to run entirely in Ant and a Java SDK.<br />

The limitations of scripted builds are:<br />

● They do not support variable selection of files and correspondingly do not support<br />

rebuild from an export properties file.<br />

● They are constrained to only <strong>ESB</strong> artifacts and, at that, exclude <strong>ESB</strong> Containers.<br />

Supporting files packaged into exports must be handled by other export techniques.<br />

Important You must have a Java SDK installation accessible on a local or networked drive.<br />

You cannot use a Java Runtime Environment such as the JRE installed with <strong>Sonic</strong>MQ.<br />

◆ To perform a scripted build of <strong>ESB</strong> artifacts:<br />

1. On a <strong>Sonic</strong> Workbench system, navigate to sonic_install_root\Workbench<strong>8.5</strong><br />

tools\eclipse\plugins\com.sonicsw.tools.sonicbuild_85n.<br />

2. In your text editor, edit the com.sonic.build.user.properties file located in the<br />

resources folder as follows:<br />

a. Edit the line com.sonic.projects.src_list=Dir1,Dir2 to provide a commadelimited<br />

list of the projects from which to expand and extract <strong>ESB</strong> artifacts.<br />

Use forward slashes (/) regardless of platform.<br />

b. Edit the line com.sonic.out.target=targetDir to provide a target for the output.<br />

Use forward slashes (/) regardless of platform.<br />

3. Open a console to sonic_install_root\Workbench<strong>8.5</strong>.<br />

a. Set JAVA_HOME. For example, set JAVA_HOME=c:\jdk1.5.0_11<br />

b. Enter ant_executable -f build_file<br />

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

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

Saved successfully!

Ooh no, something went wrong!