The shared file locker is used by file-based message stores to ensure that only one broker can modify the files used by the message store.
As shown in Example 15, the shared file locker is
configured using the shared-file-locker element.
Example 15. Configuring a Shared File Locker
<persistenceAdapter> <kahaDB directory = "target/activemq-data"> <locker> <shared-file-locker lockAcquireSleepInterval="5000"/> </locker> </kahaDB> </persistenceAdapter>
The shared file locker supports the common configuration properties described in Table 6.1.








