Configuring Database Access; Running The Alarm Demo - Red Hat APPLICATION SERVER - JONAS Tutorial

Jonas
Hide thumbs Also See for APPLICATION SERVER - JONAS:
Table of Contents

Advertisement

Chapter 10. The Alarm Application
Note
Make sure that the
10.4. Configuring Database Access
You must have configured a Database. The jndi name used in the bean is
Database Access in this tutorial or the Configuring Database Service section of the Red Hat Applica-
tion Server User Guide.
You do not have to create the database (table), it will be done by the application (the first time you
launch the JOnAS server you will see an exception saying that the table does not exist; do not worry
about this—it is a normal behaviour—the table will be created just after).

10.5. Running the Alarm Demo

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
Here is how to proceed:
1. As
, start the Red Hat Application Server server with the following command:
root
/sbin/service jonas start
2. Run
jonas admin
jonas admin -a alarm.ear
Note
The
can also be deployed using the web interface:
EAR
a. Click Deployments > Applications (EAR).
file is in the
bcel.jar
with the following arguments:
directory.
$ANT_HOME/lib
$JONAS_ROOT/examples/alarm
. See Section 4.1.3
jdbc_1
.
43

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the APPLICATION SERVER - JONAS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Application server

Table of Contents