# Lock Manager

The LockManager component is used to obtain and release locks and to set and remove flags using the EAC's synchronization Web service.

A LockManager object is associated with the elements in the application to enable a centralized access point to locks, allowing multiple objects to test for the existence of locks and flags. When a script or component invocation fails, the Deployment Template attempts to release all locks acquired during the invocation for a LockManager configured to release locks on failure. Multiple LockManager components may be configured, if it is appropriate for some locks to be released on failure while others remain.

    <!—
    ########################################################################
    # Lock manager, used to set/remove/test flags and obtain/release
    # locks
    #
    -->
      <lock-manager id="LockManager" releaseLocksOnFailure="true" />