7.3. Transaction strategies
JDO supports two specific transaction strategies. Pessimistic transactions are a required feature of the specification, and are therefore supported by all compliant implementations. Optimistic transactions are an optional feature of the specification. They will be supported by many, but not all, implementations. Support for this feature does not depend on native support for optimistic transactions in the underlying data store – vendors may choose to simulate this feature where such native support is lacking.
7.3.1. Pessimistic (data store) transactions
Pessimistic transactions are the default in JDO. They are suitable when the transaction is very short-lived, typically because there is no user interaction or other ...
Get Java™ Data Objects 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.