To build the SAAJ service and client library and to package and deploy the SAAJ service using NetBeans IDE, follow these steps:
In NetBeans IDE, choose Open Project from the File menu.
In the Open Project dialog, navigate to tut-install/javaeetutorial5/examples/coffeebreak/.
Select the cb-saaj folder.
Select the Open as Main Project and Open Required Projects check boxes.
Click Open Project.
Right-click the cb-saaj project and choose Build.
Right-click the cb-saaj project and choose Undeploy and Deploy.
To build the SAAJ service and client library and to package and deploy the SAAJ service using Ant, follow these steps:
In a terminal window, go to tut-install/javaeetutorial5/examples/coffeebreak/cb-saaj/.
Run ant. This task calls the default target, which creates the client library and compiles the SAAJ service classes.
Make sure the Application Server is started.
Deploy the SAAJ service: