background image

Running roster Application

<< Building roster Application | The Java Persistence Query Language >>
<< Building roster Application | The Java Persistence Query Language >>

Running roster Application

[echo] running application client container.
[exec] List all players in team T2:
[exec] P6 Ian Carlyle goalkeeper 555.0
[exec] P7 Rebecca Struthers midfielder 777.0
[exec] P8 Anne Anderson forward 65.0
[exec] P9 Jan Wesley defender 100.0
[exec] P10 Terry Smithson midfielder 100.0
[exec] List all teams in league L1:
[exec] T1 Honey Bees Visalia
[exec] T2 Gophers Manteca
[exec] T5 Crows Orland
[exec] List all defenders:
[exec] P2 Alice Smith defender 505.0
[exec] P5 Barney Bold defender 100.0
[exec] P9 Jan Wesley defender 100.0
[exec] P22 Janice Walker defender 857.0
[exec] P25 Frank Fletcher defender 399.0
...
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
Undeploying order
To undeploy roster.ear, enter the following command:
ant undeploy
The roster Application
Chapter 26 · Persistence in the EJB Tier
731