Prevent Concurrent Update

The following diagram illustrates the concurrent aspect of locks:

Prevent Concurrent Update

Whether locks are hard or advisory, you should always read an Item before trying to lock the item.

If you request a lock with timeout and the lock gets delayed, the lock will be granted, and a notification will be published on the JMS topic to indicate the granting of the lock.