activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert <>
Subject Re: Slave broker still accepts connections from MessageProducer
Date Tue, 10 Jul 2007 15:06:21 GMT


The activemq.log does not say anything much at all.
I have attached both the master and slave logs for your reference.

My setup is such that I got a client on the same server as the master
If the server is restarted and the master broker is configured to auto start
upon reboot, then the client will connect to the master broker successfully.
But as the queue has failover to the slave broker already, now I got some
clients connecting to the slave and 1 client connecting to the master.
Which is why I thought of connecting to the slave first and then failover to
the master.

Thanks for any advice.


Sandeep Chayapathi wrote:
> Hi,
>  What does the activemq.log say, on both you master and slave servers ? 
>  With "randomize=false", your client will connect to the servers in the
> same order and failover if they don't get a connection. 
>  Not sure if its a bug with failover or the configuration, but the slave
> should reject connection. Maybe you should be connecting to the master
> server first and then failover to the slave.
> - Sandeep
> Gilbert wrote:
>> Hi,
>> Currently I am running a setup with a pure Master/Slave configuration.
>> According to the documentation, the slave broker should not accept any
>> connections when it is a slave. So I configure my client with the
>> following connection url:
>> failover://(tcp://slavehost:61616,tcp://masterhost:61615)?randomize=false
>> My assumption is wrong as my client is able to connect to the slave and
>> all the messages produced are put in the slave's queue. However my
>> consumer is not able to retrieve the messages from the slave's queue.
>> Can anyone advise on whether this is the correct behaviour?
>> Should the slave broker be accepting connections?
>> Thanks.
>> Regards,
>> Gilbert
> master.log slave.log 
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message