10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

appclient-command-common:<br />

[exec] Cost of Bill of Material for PN SDFG-ERTY-BN Rev: 7:<br />

$241.86<br />

[exec] Cost of Order 1111: $664.68<br />

[exec] Cost of Order 4312: $2,011.44<br />

[exec] Adding 5% discount<br />

[exec] Cost of Order 1111: $627.75<br />

[exec] Cost of Order 4312: $1,910.87<br />

[exec] Removing 7% discount<br />

[exec] Cost of Order 1111: $679.45<br />

[exec] Cost of Order 4312: $2,011.44<br />

[exec] Average price of all parts: $117.55<br />

[exec] Total price of parts for Vendor 100: $501.06<br />

[exec] Ordered list of vendors for order 1111<br />

[exec] 200 Gadget, Inc. Mrs. Smith<br />

[exec] 100 WidgetCorp Mr. Jones<br />

[exec] Counting all line items<br />

[exec] Found 6 line items<br />

[exec] Removing Order 4312<br />

[exec] Counting all line items<br />

[exec] Found 3 line items<br />

[exec] Found 1 out of 2 vendors with ’I’ in the name:<br />

[exec] Gadget, Inc.<br />

BUILD SUCCESSFUL<br />

Note – Before re-running the application client, you must reset the database by running the<br />

create-tables task.<br />

<strong>The</strong> all Task<br />

As a convenience, the all task will build, package, deploy, and run the application. To do this,<br />

enter the following command:<br />

ant all<br />

<strong>The</strong> order Application<br />

Chapter 26 • Persistence in the EJBTier 723

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

Saved successfully!

Ooh no, something went wrong!