The Java EE 6 Tutorial, Volume I

ProcedureBuilding, Packaging, and Deploying the timersession Example Using Ant

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

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

  2. To build timersession, type the following command:


    ant build
    

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

  3. To deploy the application, type the following command:


    ant deploy