The Java EE 5 Tutorial

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.

  6. Right-click the cb-saaj project and choose Build.

  7. 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:

  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