Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-877

wrong example configuration for lease-database-locker

XMLWordPrintable

      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.

              fbolton@redhat.com Fintan Bolton (Inactive)
              rhn-support-tmielke Torsten Mielke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: