activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohan Nade <>
Subject question about ActiveMQ, jdbcPersistenceAdapter and MasterSlave
Date Wed, 27 Jun 2012 03:56:01 GMT
We are using activemq in jdbc master slave configuration. extract pasted
below -

      <jdbcPersistenceAdapter dataSource="#mysql-ds" useDatabaseLock="true"

The messages are posted to queues and consumers are registered to these

            MessageProducer producer = session.createProducer(destination);

The producer's delivery mode is set to persistent as pasted below.
Some messages are expected to be delivered with delay to be able to execute
them at specified time.

The questions
1. the messages are not appearing in ACTIVEMQ_MSGS till they are close to
the execution time. Should the messages not appear when the are "sent"?

2. Since we are looking for master slave using jdbc, the '
useDatabaseLock="true"' is set but even with a minute fluctuation in the db
connection, the master fails and the control is handed over to slave. 
We have tried 'lockKeepAlivePeriod="0" lockAcquireSleepInterval="300000"'
Is there a way to let the master wait for a defined time and then only fail?


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message