The Java EE 6 Tutorial

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

  1. In a terminal window, go to:


    tut-install/examples/ejb/timersession/
    
  2. 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