Session Beans

JOnAS distribution comes with several examples applications. In the example we will use, a java client accesses a Stateful Session bean, calls the buy method of the bean several times inside the scope of transactions.

Finding the example application

The Session Bean example application is located in the $JONAS_ROOT/example/src/sb directory. It is composed of the following files:

-rw-r--r--  4229 Jul  6  2001 ClientOp.java
-rw-r--r--  1543 Jul  6  2001 compile.bat
-rw-r--r--  1146 Jul  6  2001 compile.sh
-rw-r--r--  1034 Feb 11 15:52 ejb-jar.xml
-rw-r--r--   299 Feb 11 15:52 jonas-ejb-jar.xml
-rw-r--r--  1117 Jul  6  2001 jonas.properties
-rw-r--r--  1248 Aug 16 09:10 Makefile
-rw-r--r--  7043 Sep 28  2000 OpBean.java
-rw-r--r--  1278 Mar 16  2000 OpHome.java
-rw-r--r--  1289 Mar 16  2000 Op.java
-rw-r--r--   924 Aug 28 08:06 README

Check that you don't miss any file before proceeding to the next section.