background image

Deploying the SAAJ Coffee Supplier Service

<< Setting the Port | Running the Coffee Break Client >>
<< Setting the Port | Running the Coffee Break Client >>

Deploying the SAAJ Coffee Supplier Service

Building, Packaging, and Deploying the SAAJ Coffee
Supplier Service
To build the SAAJ service and client library and to package and deploy the SAAJ service using
NetBeans IDE, follow these steps:
1. In NetBeans IDE, choose Open Project from the File menu.
2. In the Open Project dialog, navigate to
tut-install/javaeetutorial5/examples/coffeebreak/.
3. Select the cb-saaj folder.
4. Select the Open as Main Project and Open Required Projects check boxes.
5. Click Open Project Folder.
6. Right-click the cb-saaj project and choose Build Project.
7. Right-click the cb-saaj project and choose Deploy Project.
To build the SAAJ service and client library and to package and deploy the SAAJ service using
Ant, follow these steps:
1. In a terminal window, go to
tut-install/javaeetutorial5/examples/coffeebreak/cb-saaj/.
2. Run ant. This task calls the default target, which creates the client library and compiles the
SAAJ service classes.
3. Make sure the Application Server is started.
4. Deploy the SAAJ service:
ant deploy
Building, Packaging, and Deploying the Coffee Break
Server
To build, package, and deploy the Coffee Break server using NetBeans IDE, follow these steps:
1. In NetBeans IDE, choose Open Project from the File menu.
2. In the Open Project dialog, navigate to
tut-install/javaeetutorial5/examples/coffeebreak/.
3. Select the cb folder.
4. Select the Open as Main Project and Open Required Projects check boxes.
5. Click Open Project Folder.
6. Right-click the cb project and choose Build Project.
Building, Packaging, Deploying, and Running the Coffee Break Application
Chapter 36 · The Coffee Break Application
1053