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.
6.1. Finding the Example Application
The Entity Bean example application is located in the
It is composed of the following files:
-rw-r--r--
19456 Apr 25
-rw-r--r--
2048 Apr 25
-rw-r--r--
1024 Apr 25
-rw-r--r--
10752 Apr 25
-rw-r--r--
11264 Apr 25
-rw-r--r--
2048 Apr 25
-rw-r--r--
1024 Apr 25
-rw-r--r--
1024 Apr 25
-rw-r--r--
6144 Apr 25
drwxr-xr-x
2048 Apr 25
-rw-r--r--
9728 Apr 25
-rw-r--r--
4096 Apr 25
-rw-r--r--
2048 Apr 25
-rw-r--r--
2560 Apr 25
Check that all files are present before proceeding to the next section.
6.1.1. Understanding Entity Beans
Here is a description of the files that reside in the
contains the Remote interface for the bean Account.
•
Account.java
•
AccountExplBean.java
•
AccountHome.java
•
AccountImpl2Bean.java
2".
•
AccountImplBean.java
•
ClientAccount.java
is the JOnAS-specific part of the deployment descriptor.
•
jonas-eb.xml
is the standard part of the deployment descriptor.
•
eb.xml
2003 AccountExplBean.java
2003 AccountHome.java
2003 Account.idb
2003 AccountImpl2Bean.java
2003 AccountImplBean.java
2003 Account.java
2003 Account.pgsql
2003 Account.sql
2003 ClientAccount.java
2003 davidclt
2003 db1.prp
2003 eb.xml
2003 jonas-eb.xml
2003 README
contains the entity bean with "bean-managed persistence".
contains the Home interface for the bean Account.
contains an entity bean with "container-managed persistence version
contains an entity bean with "container-managed persistence".
contains the client account code.
$JONAS_ROOT/examples/src/eb
$JONAS_ROOT/examples/src/eb
Chapter 6.
Entity Beans
directory.
directory:
Need help?
Do you have a question about the APPLICATION SERVER - JONAS and is the answer not in the manual?
Questions and answers