The Java EE 6 Tutorial, Volume I

ProcedureBuilding, Deploying, and Running the counter Example Using Ant

  1. In a terminal, navigate to tut-install/examples/ejb/counter.

  2. Enter the following command:


    ant all

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

  3. In a web browser, enter the following URL: http://localhost:8080/counter.

  4. Click the browser's Refresh button to see the hit count increment.