Is the ActiveMQ scheduler lock delay configurable?

Solution Verified - Updated -

Issue

  • I have configured a kahadb to use a lock delay by using the following configuration:
<persistenceAdapter>
            <kahaDB directory="/Users/jsherman/Development/tools/jboss-amq/apache-activemq-5.8.0.redhat-60024/data/kahadb">
        <locker>
            <shared-file-locker lockAcquireSleepInterval="5000"/>
        </locker>
        </kahaDB>
</persistenceAdapter>

This allows the slave broker to try to acquire the lock on the kahadb persistence store every 5 seconds.

However, I am still seeing the scheduler trying to acquire the lock every 10 seconds:

2013-12-06 07:29:40,920 | INFO  | Database /Users/jsherman/Development/tools/jboss-amq/apache-activemq-5.8.0.redhat-60024/data/localhost/scheduler/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.IOException: File '/Users/jsherman/Development/tools/jboss-amq/apache-activemq-5.8.0.redhat-60024/data/localhost/scheduler/lock' could not be locked. | org.apache.activemq.store.kahadb.scheduler.JobSchedulerStoreImpl | main
  • Is there anyway to configure the scheduler lock delay?

Environment

  • JBoss Fuse 6.0 A-MQ

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content