You remember how it all works, right?

Getting and using a stateful session bean

This picture shows what happens after the client does a lookup in JNDI and gets the home stub. In other words, it shows the client getting and then using a bean. This picture is still too high-level, though, so we’ll go a lot deeper later in this chapter. For example, we’ll cover what really happens between step two (home object gets the client’s create() call) and step four (home makes the bean). The exam expects you to know just exactly what’s involved in “makes the bean”.

image with no caption

Stateful Session Bean

CREATION

image with no caption

USE

(business method call)

image with no caption

Get Head First EJB 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.