The {@link Transaction} handle is not invalidated as a result ofthis exception.
For compatibility with prior releases, {@link LockNotGrantedException} isthrown instead of {@link LockNotAvailableException} when {@link EnvironmentConfig#LOCK_OLD_LOCK_EXCEPTIONS} is set to true. Thisconfiguration parameter is false by default. See {@link EnvironmentConfig#LOCK_OLD_LOCK_EXCEPTIONS} for information on the changesthat should be made to all JE applications.
Normally, applications should catch the base class {@link LockConflictException} rather than catching one of its subclasses. All lockconflicts are typically handled in the same way, which is normally to abort and retry the transaction. See {@link LockConflictException} for moreinformation.
@since 4.0
|
|
|
|