Bean and Data Caching

The EJB container provides caching capabilities to your Enterprise Beans. Database applications often need caching facilities in order to reduce the number of round trips between the database and the application server. This provides better performance for applications in some scenarios. Because CMP (and EJBs in general) provides abstraction at many levels, understanding where caching can happen can be a challenge. Figure 10-4 illustrates some of these concepts.

Figure 10-4. CMP bean and data cache.

On the top layer, there is a set of CMP objects that have the data in the format the programmer uses. For example, the Stock ...

Get IBM WebSphere: Deployment and Advanced Configuration 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.