The Java EE 6 Tutorial

ProcedureTo Build, Package, and Deploy the helloservice Example Using Ant

  1. In a terminal window, go to:


    tut-install/examples/ejb/helloservice/
    
  2. Type the following command:


    ant
    

    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 GlassFish Server generates additional artifacts required for web service invocation, including the WSDL file.