uCosminexus Application Server, System Setup and Operation Guide
The sample program for executing the Timer Service is stored in the following directory:
Cosminexus-installation-directory\CC\examples\ejb\timerservice
Following is the overview and execution procedure of the sample:
The following figure shows the configuration of the Timer Service sample program "TimerService":
Figure M-30 Configuration of TimerService
You can use this sample program to create, list, and cancel EJB timer through the Web browser. If timeout occurs for EJB timer, a message is output to the user log.
Following is the execution example of the sample program.
Figure M-31 Execution example of TimerService sample program
The sample provides the following functionalities:
The timeout method was invoked. (Information = MyTimer02) |
The following procedure describes the method of executing sample programs:
Compile sample programs by using a batch file (compile.bat) provided in the sample. This batch file creates EJB-JAR file (timerservice.jar), WAR file (timerservice.war), and EAR file (timerservice.ear).
See Appendix M.1(1) Setting the J2EE server.
See Appendix M.1(2) Customizing the J2EE server.
See Appendix M.1(3) Starting the J2EE server.
See Appendix M.1(5) Importing, setting and starting the application.
Start the browser and specify the following string in the URL:
http://Machine-name: Port-number/ContextRoot/TimerServiceServlet
If the in-process HTTP server is available, the following URL is specified by default:
http://localhost/timerservice/TimerServiceServlet
See Appendix M.1(6) Stopping and deleting the application.
All Rights Reserved. Copyright (C) 2012, 2013, Hitachi, Ltd.