background image

The all Task

<< Running the order Application | The roster Application >>
<< Running the order Application | The roster Application >>

The all Task

appclient-command-common:
[exec] Cost of Bill of Material for PN SDFG-ERTY-BN Rev: 7:
$241.86
[exec] Cost of Order 1111:
$664.68
[exec] Cost of Order 4312:
$2,011.44
[exec] Adding 5% discount
[exec] Cost of Order 1111:
$627.75
[exec] Cost of Order 4312:
$1,910.87
[exec] Removing 7% discount
[exec] Cost of Order 1111:
$679.45
[exec] Cost of Order 4312:
$2,011.44
[exec] Average price of all parts:
$117.55
[exec] Total price of parts for Vendor 100:
$501.06
[exec] Ordered list of vendors for order 1111
[exec] 200 Gadget, Inc. Mrs. Smith
[exec] 100 WidgetCorp Mr. Jones
[exec] Counting all line items
[exec] Found 6 line items
[exec] Removing Order 4312
[exec] Counting all line items
[exec] Found 3 line items
[exec] Found 1 out of 2 vendors with
'I' in the name:
[exec] Gadget, Inc.
BUILD SUCCESSFUL
Note ­
Before re-running the application client, you must reset the database by running the
create-tables
task.
The all Task
As a convenience, the all task will build, package, deploy, and run the application. To do this,
enter the following command:
ant all
The order Application
Chapter 26 · Persistence in the EJB Tier
725