Enterprise Beans

Figure 36-2 takes a closer look at the access paths between the clients, enterprise beans, and database tables. As you can see, the end-user clients (Web and application clients) access only the session beans. Within the enterprise bean tier, the session beans are clients of the entity beans. On the back end of the application, the entity beans access the database tables that store the entity states.

Figure 36-2. Enterprise Beans

Note

The source code for these enterprise beans is in the <INSTALL>/j2eetutorial14/examples/bank/src/com/sun/ebank/ejb/ directory.

Session Beans

The Duke's Bank application has three session beans:

Get The J2EE™ Tutorial Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.