Difference between revisions of "EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Locking"
|Line 1:||Line 1:|
|example = [[EclipseLink/Examples/JPA/Locking|Locking]]
Revision as of 08:45, 16 June 2010
This section describes choices you need to make when deciding on how to use EclipseLink locking options in your application architecture. We strongly recommend always using a locking policy in a concurrent system (see Configuring Locking Policy).
These choices can be summarized as follows:
- Optimistic Locking
- Pessimistic Locking
If you are building a three-tier application, be aware of how that architecture affects the way you use locking (see Locking in a Three-Tier Application).
For more information, see Descriptors and Locking.