If an SQL repository contains item descriptors that use locked caching, set the Repository component’s lockManager
property to a component of type atg.service.lockmanager.ClientLockManager
. ATG provides a default ClientLockManager component:
/atg/dynamo/service/ClientLockManager
Thus, you can set an SQL Repository’s lockManager property as follows:
lockManager=/atg/dynamo/service/ClientLockManager
ClientLockManager properties
A ClientLockManager component must be configured as follows:
Property | Setting |
---|---|
|
|
| Host address of the ServerLockManager and, if set, the backup ServerLockManager |
| The ports used on the ServerLockManager hosts, listed in the same order as in |
For example, given two ServerLockManagers on hosts tartini.acme-widgets.com
and corelli.acme-widgets.com
, where both use port 9010, the ClientLockManager
is configured as follows:
$class=atg.service.lockmanager.ClientLockManager lockServerAddress=tartini.acme-widgets.com,corelli.acme-widgets.com lockServerPort=9010,9010 useLockServer=true
Note: The liveconfig
configuration layer always sets useLockServer
to true.