The Java EE 6 Tutorial

ProcedureTo Build, Package, Deploy, and Run the counter Example Using Ant

  1. In a terminal window, go to:


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


    ant all
    

    This will build and deploy counter to your GlassFish Server instance.

  3. In a web browser, type the following URL:


    http://localhost:8080/counter
    
  4. Click the browser’s Refresh button to see the hit count increment.