The Java EE 5 Tutorial

Building, Packaging, and Deploying the helloservice Example Using Ant

    Follow these instructions to build, package, and deploy the helloservice example to your Application Server instance using Ant.

  1. In a terminal window, go to the tut-install/javaeetutorial5/examples/ejb/helloservice/ directory.

  2. To build helloservice, type the following command:


    This runs the default task, which compiles the source files and packages the application into a JAR file located at tut-install/examples/ejb/helloservice/dist/helloservice.jar.

  3. To deploy helloservice, type the following command:

    ant deploy

    Upon deployment, the Application Server generates additional artifacts required for web service invocation, including the WSDL file.