The counter example application can be built, deployed, and run using NetBeans IDE or Ant.
In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to:
tut-install/examples/ejb/ |
Select the counter folder.
Select the Open as Main Project check box.
Click Open Project.
In the Projects tab, right-click the counter project and select Run.
A web browser will open the URL http://localhost:8080/counter, which displays the number of hits.
Click the browser’s Refresh button to see the hit count increment.
In a terminal window, go to:
tut-install/examples/ejb/counter |
Type the following command:
ant all |
This will build and deploy counter to your GlassFish Server instance.
In a web browser, type the following URL:
http://localhost:8080/counter |
Click the browser’s Refresh button to see the hit count increment.