To run the alarm example, you will have to first start the JOnAS server and then run jonas admin. Finally, at the end of the execution you should stop the JOnAS server.
Note | |
---|---|
The following example assumes that the current folder is $JONAS_ROOT/examples/alarm. |
Here is how to proceed:
As root, start the Red Hat Application Server server with the following command:
/sbin/service jonas start |
Run jonas admin with the following arguments:
jonas admin -a alarm.ear |
Note | |
---|---|
The EAR can also be deployed using the web interface:
If you click Application Container, EJB container, or Web Container under Services, you will see alarm.ear in the tree. |
Generate alarms: The easiest way is to use the link on the first html page that will run a servlet that will generate customized alarms. Look at http://$HOSTNAME:9000/alarm/index.html to start using the web application. If you are asked for authentication, use Username: tomcat Password: tomcat.
Running Alarm is simply a matter of following the on-screen instructions: to set alarms, click Click here to generate alarms; to check for alarms, click Filters.
As root, stop the Red Hat Application Server server:
/sbin/service jonas stop |