Quick Start; Setting Up The Red Hat Application Server Environment; Running Your First Ejb Application - Red Hat APPLICATION SERVER - JONAS Tutorial

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

Advertisement

Chapter 2.

Quick Start

This chapter will help you set up Red Hat Application Server and run your first EJB application. If
you do not understand all the steps, you should read the next two chapters to familiarize yourself with
the details of setting up Red Hat Application Server.

2.1. Setting Up the Red Hat Application Server Environment

We assume that your JDK is already installed and configured.
Once you have installed your Red Hat Application Server distribution, you have to set up the
environment variable prior to using JOnAS or any of its tools. You will also have to
JONAS_ROOT
update your
as well.
PATH variable
Open a new terminal and proceed as follows:
bash> export JONAS_ROOT=/usr/share/jonas
bash> export PATH=${PATH}:${JONAS_ROOT}/bin/unix

2.2. Running Your First EJB Application

Several example programs are included with the JOnAS distribution. They are located in the
directory. The one we will use as your first EJB application is the
$JONAS_ROOT/examples/src
Session Bean (SB) example that resides in
.
$JONAS_ROOT/examples/src/sb
The SB example involves a Java client that accesses a Stateful Session Bean and twice invokes the
method of the bean transaction. The client communicates with JOnAS using RMI and the config-
buy
uration files should be already set so that the RMI registry will be automatically started and embedded
in the same JVM as JOnAS. The figure below gives an overview of this application.
Figure 2-1. EB example overview

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Application server

Table of Contents