Enterprise Beans

Figure 18-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 J2EE 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 18-2. Enterprise Beans in the Duke’s Bank Application

The source code for these enterprise beans is in the j2eetutorial/bank/src/com/sun/ebank/ejb subdirectory.

Session Beans

The Duke’s Bank application has three session ...

Get J2EE™ Tutorial, The 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.