background image

Enterprise Beans

<< The Duke Bank Application | Session Beans >>
<< The Duke Bank Application | Session Beans >>

Enterprise Beans

Enterprise Beans
Let's take a closer look at the access paths between the clients, enterprise beans, and database
tables. The end-user clients (web and application clients) access only the session beans. Within
the enterprise bean tier, the session beans use Java Persistence entities. On the back end of the
application, the entities access the database tables that store the entity states.
Note ­
The source code for these enterprise beans is in the
tut-install/javaeetutorial5/examples/dukesbank/src/com/sun/ebank/ejb/ directory.
Java EE Server
Web
Container
Account
List
Account
History
Transfer
Funds
ATM
EJB Container
Tx
Controller
Session
Bean
Account
Controller
Session
Bean
Customer
Controller
Session
Bean
Tx
Entity
Account
Entity
Customer
Entity
DB
Web Client
Application
Client
FIGURE 37­1
Duke's Bank Application
Enterprise Beans
The Java EE 5 Tutorial · September 2007
1058