-
Task
-
Resolution: Done
-
Major
-
JBoss A-MQ 6.1
-
None
The sample configuration for the lease-database-locker is incorrect.
The values for lockKeepAlivePeriod and lockAcquireSleepInterval are swapped and it should rather be
<persistenceAdapter> <jdbcPersistenceAdapter dataDirectory="${activemq.data}" dataSource="#mysql-ds" lockKeepAlivePeriod="5000"> <locker> <lease-database-locker lockAcquireSleepInterval="10000"/> </locker> </jdbcPersistenceAdapter> </persistenceAdapter>
Using the currently documented configuration raises
WARN | LockableService keep alive period: 10000, which renews the lease, is less than lockAcquireSleepInterval: 5000, the lease duration. These values will allow the lease to expire.
at broker startup time.