16.10.2015 Views

Getting Startedwith pureQuery

Create successful ePaper yourself

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

Chapter 6 – The Client Optimizer: <strong>pureQuery</strong> for Existing Applications 123<br />

6.7.1.1 Specify options for the <strong>pureQuery</strong>Xml file<br />

As for the Configure utility, you can use an options file to specify options for the<br />

StaticBinder utility. Notice the options file named Default.bindProps in Figure 6.11. It<br />

is located in the <strong>pureQuery</strong>Folder directory in the <strong>Getting</strong>StartedWithPureQuery<br />

project.<br />

Figure 6.11 - The options file Default.bindProps in a <strong>pureQuery</strong>-enabled project<br />

Add a line to Default.bindProps for the <strong>pureQuery</strong>Xml file. The StaticBinder’s defaults<br />

are fine for our purposes, so do not specify any options on the line. The StaticBinder can<br />

bind the file even without the line, but it is a good practice to add it. Adding everything that<br />

must be bound to the options file makes it easy to bind the application from the command<br />

line. Add a line as shown in Listing 6.7. Remember to change the path so that it is correct<br />

for your <strong>pureQuery</strong>Xml file. If you were to add options for the <strong>pureQuery</strong>Xml file, you<br />

would specify them after the equal sign (=).<br />

C:\pathOfWorkspace\<strong>Getting</strong>StartedWithPureQuery\<strong>pureQuery</strong>Folder\captureFile.pdqxml<br />

=<br />

Listing 6.7 - An entry for our <strong>pureQuery</strong>Xml file in Default.bindProps<br />

6.7.1.2 Run the StaticBinder utility.<br />

If you are using IBM Optim Development Studio, bind the <strong>pureQuery</strong>Xml file by rightclicking<br />

on it in the Package Explorer view and selecting <strong>pureQuery</strong> and then selecting<br />

Bind…. This is shown in Figure 6.12. Then, choose the connection that you want to use<br />

for the bind and click Finish, as shown in Figure 6.13.

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

Saved successfully!

Ooh no, something went wrong!