Session Beans; Finding The Example Application; Building The Example; Running The Sb Example - Red Hat APPLICATION SERVER - JONAS Tutorial

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

Advertisement

The JOnAS distribution comes with several example applications. In the following example, we will
use a java client that accesses a Stateful Session bean and invokes the
action twice.

5.1. Finding the Example Application

The Session Bean example application is located in the
It is composed of the following files:
-rw-r--r--
4608 Apr 25
-rw-r--r--
512 Apr 25
-rw-r--r--
7680 Apr 25
-rw-r--r--
1536 Apr 25
-rw-r--r--
1536 Apr 25
-rw-r--r--
1536 Apr 25
-rw-r--r--
1536 Apr 25
Check that all files are present before proceeding to the next section.

5.2. Building the Example

The simplest way to compile this and all examples is to go to the
directory and enter the command as user
ant -find build.xml install

5.3. Running the SB Example

Note
This example builds on the example in Section 2.2.2 Quick Start to the SB Example.
To run this example, you will have to first start the JOnAS server and then run the Java client. Finally,
at the end of the execution you should stop the JOnAS server.
Note
The following example assumes that the current directory is
Here is how to proceed:
2003 ClientOp.java
2003 jonas-sb.xml
2003 OpBean.java
2003 OpHome.java
2003 Op.java
2003 README
2003 sb.xml
:
jonas

Session Beans

buy
$JONAS_ROOT/examples/src/sb
$JONAS_ROOT/examples/src
$JONAS_ROOT/examples/src/sb
Chapter 5.
method of the bean trans-
directory.
.

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