Building The Examples; Quick Start To The Sb Example - Red Hat APPLICATION SERVER - JONAS Tutorial

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

Advertisement

6

2.2.1. Building the Examples

The simplest way to compile all examples is to start in the
and enter the following command line as user
ant -find build.xml install
This command compiles all examples in the
Note
All examples assume that the current directory is
rectory that contains the example. In other words, the commands entered for the SB example assume
the current folder is
ample assume the current folder is
To login as user
jonas
su -s /bin/bash jonas

2.2.2. Quick Start to the SB Example

Note
This example is described in more detail in Section 5.3 Running the SB Example.
To run this example, you will have to first start the Red Hat Application Server server and then run the
Java client. Finally, at the end of the execution you should stop the Red Hat Application Server server.
Note
The following example assumes that the current directory is
Here is how to proceed:
1. As
, start the Red Hat Application Server server:
root
/sbin/service jonas start
2. Deploy the JAR file:
To deploy the JAR file from the command line:
jonas admin -a sb.jar
To deploy the JAR file using the web interface:
a. Log into the JOnAS Administrator.
$JONAS_ROOT/examples/src/sb
$JONAS_ROOT/examples/src/eb
, first login as
root
$JONAS_ROOT/examples/src
:
jonas
$JONAS_ROOT/examples/src
$JONAS_ROOT/examples/src/
, whereas the commands entered for the EB ex-
, then
to user
su
jonas
$JONAS_ROOT/examples/src/sb
Chapter 2. Quick Start
directory.
followed by the di-
.
, specifying
/bin/bash
directory
as the shell:
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Application server

Table of Contents