Chapter 5. Session Beans

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 buy method of the bean transaction twice.

5.1. Finding the Example Application

The Session Bean example application is located in the $JONAS_ROOT/examples/src/sb directory. It is composed of the following files:
-rw-r--r--  4608 Apr 25  2003 ClientOp.java
-rw-r--r--   512 Apr 25  2003 jonas-sb.xml
-rw-r--r--  7680 Apr 25  2003 OpBean.java
-rw-r--r--  1536 Apr 25  2003 OpHome.java
-rw-r--r--  1536 Apr 25  2003 Op.java
-rw-r--r--  1536 Apr 25  2003 README
-rw-r--r--  1536 Apr 25  2003 sb.xml

Check that all files are present before proceeding to the next section.