March 2002
Intermediate to advanced
464 pages
8h 51m
English
Entity beans can be more difficult to understand than session beans because the EJB container does more work behind the scenes. Therefore, as we present our example Customer EJB, we'll show you the entity bean code and explain the services that the EJB container provides.
Our entity bean example consists of a Customer EJB with Bean-Managed Persistence (BMP). It provides persistence for the CustomerVO data we used in the previous chapter (see Listing 5.1 on page 143). With this capability, our J2EE shopping application can now identify customers from a database (and verify a customer's password), or create a new customer. We thus provide a true “login” process. The CustomerVO object includes a customer's ...
Read now
Unlock full access