Prevent Concurrent Update

The following diagram illustrates the concurrent aspect of locks:

Prevent Concurrent Update

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

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