13.1. Persistence management overview
Container-managed persistence has the potential to be of great help to the developer, as well as offering a number of efficiency advantages. The EJB Specification defines a philosophy of persistence management in which the EJB devolves all its persistence management to the container. The container’s job is therefore a significant one.
We have already seen (Chapter 11) that the EJB container can determine when the EJB must be given a chance to read its persistent state from the database, and when it must be given the chance to write it. In summary, the container knows that state is likely to be stale at the start of a transaction, and may well need to be written out just before a transaction commits. With ...
Get Applied Enterprise JavaBeans™ Technology 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.