background image

Running the Coffee Break Client

<< Deploying the SAAJ Coffee Supplier Service | Order Form >>
<< Deploying the SAAJ Coffee Supplier Service | Order Form >>

Running the Coffee Break Client

7. Right-click the cb project and choose Deploy Project.
To build, package, and deploy the Coffee Break server using Ant, follow these steps:
1. In a terminal window, go to tut-install/javaeetutorial5/examples/coffeebreak/cb/.
2. Run ant. This task calls the default target, which compiles the server classes.
3. Make sure the Application Server is started.
4. Deploy the Coffee Break server:
ant deploy
Running the Coffee Break Client
After you have installed all the web applications, check that all the applications are running in
the Admin Console. You should see cb, cb-saaj, and cb-jaxws in the list of applications.
You can run the Coffee Break client by opening this URL in a web browser:
http://localhost:8080/cbserver/
A page appears with the following message:
Redirecting to CoffeeBreak demo...click here otherwise.
In a few seconds, you should see a page like the one shown in
Figure 36­2
.
Building, Packaging, Deploying, and Running the Coffee Break Application
The Java EE 5 Tutorial · September 2007
1054