Entity Beans

In this example, two beans share the same interface (Account), one uses bean-managed persistence (explicit persistence), the other uses container-managed persistence (implicit persistence). This is a good example of the two persistence techniques.

Finding the Example Application

The Entity Bean example application is located in the $JONAS_ROOT/examples/src/eb directory. It is composed of the following files:
-rw-r--r--   1024 Apr 25  2003 Account.idb
-rw-r--r--   2048 Apr 25  2003 Account.java
-rw-r--r--   1024 Apr 25  2003 Account.pqsql
-rw-r--r--   1024 Apr 25  2003 Account.sql
-rw-r--r--  19456 Apr 25  2003 AccountExplBean.java
-rw-r--r--   2048 Apr 25  2003 AccountHome.java
-rw-r--r--  10752 Apr 25  2003 AccountImpl2Bean.java
-rw-r--r--  11264 Apr 25  2003 AccountImplBean.java
-rw-r--r--   1024 Apr 25  2003 AccountMySQL.sql
-rw-r--r--   6144 Apr 25  2003 ClientAccount.java
-rw-r--r--   3072 Apr 25  2003 compile.bat
-rw-r--r--   3072 Apr 25  2003 compile.sh
drwxr-xr-x   2048 Apr 25  2003 davidclt
-rw-r--r--   9728 Apr 25  2003 db1.prp
-rw-r--r--   4096 Apr 25  2003 eb.xml
-rw-r--r--   2048 Apr 25  2003 jonas-eb.xml
-rw-r--r--   2560 Apr 25  2003 README

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