The Java EE 5 Tutorial

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.

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

  7. Right-click the cb project and choose Undeploy and Deploy.

    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