Day 11. Developing Container-Managed Persistence Entity Beans

Today you'll learn how to develop portable applications that are database independent and free of database access code. You'll work on a complete example of developing a container-managed persistence (CMP) entity bean.

In our sample University Registration System, a student selects items from the course catalog, places them in an enrollment cart, and, when ready, places an order for the cart contents. The order must live even when the student's session with the application is over. Therefore, in the sample application, the Order component is modeled as an entity bean. The Order component provides data-related logic, such as inserting, updating, and removing an order record in the ...

Get Sams Teach Yourself EJB in 21 Days 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.