activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: question about ActiveMQ, jdbcPersistenceAdapter and MasterSlave
Date Wed, 27 Jun 2012 09:55:06 GMT
On 1) the broker schedular maintains its own file based store, and
sends the messages when they are due.

On 2) Have a read of
https://issues.apache.org/jira/browse/AMQ-3654?focusedCommentId=13294679&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13294679


On 27 June 2012 04:56, Mohan Nade <mohannade@gmail.com> wrote:
> We are using activemq in jdbc master slave configuration. extract pasted
> below -
>
>     <persistenceAdapter>
>      <jdbcPersistenceAdapter dataSource="#mysql-ds" useDatabaseLock="true"
> />
>     </persistenceAdapter>
>
>
> The messages are posted to queues and consumers are registered to these
> queues.
>
>            MessageProducer producer = session.createProducer(destination);
>            producer.setDeliveryMode(DeliveryMode.PERSISTENT);
>
> 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?
>
> regards,
> Mohan
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/question-about-ActiveMQ-jdbcPersistenceAdapter-and-MasterSlave-tp4653602.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://fusesource.com
http://blog.garytully.com

Mime
View raw message