activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Carlson <jcarl...@e-dialog.com>
Subject How do I set the data directory for the job scheduler?
Date Wed, 29 Feb 2012 16:25:27 GMT
We are using  a shared file system master/slave configuration. We have schedulerSupport enabled.
When we encounter a failover all 'scheduled' messages are lost. This is because it is using
the local disk for the data store for the Job Scheduler. How can I set this directory to our
shared file system (rooted at /queue)? Here is the relevant part of our activemq.xml.

<broker xmlns="http://activemq.apache.org/schema/core" brokerName="mmuserb2" useJmx="true"
advisorySupport="false" persistent="true" deleteAllMessagesOnStartup="false"  useShutdownHook="false"
schedulerSupport="true">

...

        <persistenceAdapter>
            <kahaDB directory="/queue/d41d8cd98f00b204e9800998ecf8427e/5.5.1" enableIndexWriteAsync="false"
ignoreMissingJournalfiles="true" checkForCorruptJournalFiles="true" checksumJournalFiles="true"
/>
        </persistenceAdapter>

and the broker winds up createing the scheduler directory under the root file system: /activemq-data/mmuserb2/scheduler

Here is the relevent part of the log:

2012-02-08 10:24:25,808 | INFO  | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@19bb5c09:
startup date [Wed Feb 08 10:24:25 EST 2012]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1
| main
2012-02-08 10:24:27,221 | INFO  | PListStore:activemq-data/mmuserb2/tmp_storage started |
org.apache.activemq.store.kahadb.plist.PListStore | main
2012-02-08 10:24:27,301 | INFO  | Using Persistence Adapter: KahaDBPersistenceAdapter[/queue/d41d8cd98f00b204e9800998ecf8427e/5.5.1]
| org.apache.activemq.broker.BrokerService | main
2012-02-08 10:24:27,421 | INFO  | ActiveMQ 5.5.1 JMS Message Broker (mmuserb2) is starting
| org.apache.activemq.broker.BrokerService | main
2012-02-08 10:24:27,421 | INFO  | For help or more information please see: http://activemq.apache.org/
| org.apache.activemq.broker.BrokerService | main
2012-02-08 10:24:27,566 | INFO  | Scheduler using directory: activemq-data/mmuserb2/scheduler
| org.apache.activemq.broker.scheduler.SchedulerBroker | main
2012-02-08 10:24:27,668 | INFO  | JobSchedulerStore:activemq-data/mmuserb2/scheduler started
| org.apache.activemq.broker.scheduler.JobSchedulerStore | main

Thanks

Josh



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message