12.4. EJB concurrency control

In addition to the transaction isolation level, WebSphere supports the ability to specify which entity methods are read-only and should not result in changes to persistent data. Bean deployers can also specify whether an entity retrieved via its primary key is likely to be updated. Both mechanism can affect the database locking behavior.

12.4.1. Setting read-only method with VisualAge for Java

Use VisualAge for Java to indicate which entity methods are read-only.

The container can use this information to optimize database operations. For example, if all methods executed on an entity during a transaction are marked as read-only, the container can skip the ejbStore() operation at the end of the transaction.

This ...

Get WebSphere V3.5 Handbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.