Follow these instructions to build, package, and deploy the timersession example to your Application Server instance using the NetBeans IDE IDE.
In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to tut-install/javaeetutorial5/examples/ejb/.
Select the timersession folder.
Select the Open as Main Project and Open Required Projects check boxes.
Click Open Project.
Select Run->Run Main Project.
This builds and packages the application into timersession.ear, located in tut-install/javaeetutorial5/examples/ejb/timersession/dist/, deploys this EAR file to your Application Server instance, and then runs the application client.
You will see the output from the application client in the Output tab:
... Creating a timer with an interval duration of 3000 ms. run-timersession-app-client: run-nb: BUILD SUCCESSFUL (total time: 16 seconds)
The output from the timer is sent to the server.log file located in the domain-dir/server/logs/ directory. To view this file:
Click the Services tab.
Right-click your Application Server instance and select View Server Log.
Look for the following line at the bottom of server.log: