activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francois Guillemette <francois.guilleme...@trilliantnetworks.com>
Subject JDBC master/slave redelivery problem
Date Wed, 22 Aug 2007 18:33:58 GMT

Hi, I got a problem with redelivery of message when using a JDBC master/slave
configuration.:,(

Here the step to reproduce:
 * I started 2 brokers in JDBC master/slave config, and I started 2
consumers (with CLIENT_ACKNOWLEDGE)
 * I sent one message (with redeliveryPolicy)
        RedeliveryPolicy repo= new RedeliveryPolicy();
        repo.setInitialRedeliveryDelay(500);
        repo.setMaximumRedeliveries(5);
        ((ActiveMQConnection)connection).setRedeliveryPolicy(repo);
 * The message is being consumed by one consumer (I have put a sleep before
the ack)
 * I killed the broker that has sent the message, the other broker take the
place of the master
 * I killed the consumer that got the message (before the
message.acknowledge())
 * The other consumer don't get message

This test work if I don't kill the master broker. It look like that the
slave don't know the last state of the master broker before it is killed.

I'm wondering if I need to put something a kind of connection between the
broker so that they have the same state until one of them is killed.
:confused:

Thanks
-- 
View this message in context: http://www.nabble.com/JDBC-master-slave-redelivery-problem-tf4313302s2354.html#a12280377
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message