Pure Master Slave Issue : slave queue is not updating....

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Pure Master Slave Issue : slave queue is not updating....

This post has NOT been accepted by the mailing list yet.
Hi All,
I have setup ActiveMQ pure Master-Slave configuration for a  web application. In  slave console following message is shown "Successfully connected to tcp://" and in master console following message is shown "Active Slave Broker slave is attached".

When we send any message to master, queue size for master is increasing but for slave queue size is always shown as zero (Checked using Jconsole).

Following is the configuration for Master and Slave-

Master Configuration:
<broker brokerName="localhost" useJmx="true" advisorySupport="false"  deleteAllMessagesOnStartup="false" start ="false" persistent="true" useShutdownHook="true" xmlns="http://activemq.apache.org/schema/core">

Slave Configuration:
<amq:broker brokerName="slave" masterConnectorURI="tcp://" shutdownOnMasterFailure="false"> <amq:persistenceAdapter>
<amq:kahaPersistenceAdapter directory="C:\activemq-data" maxDataFileLength="33554432"/> </amq:persistenceAdapter>
 <amq:transportConnector uri="tcp://localhost:61616"/>

And jndi.properties for Slave is as below:
java.naming.provider.url = failover://(tcp://,tcp://localhost:61616)?randomize=false

I’m using ActiveMQ 5.6 version.

What could be the reason?
Please suggest me if there are any changes that needs to be done in Master-Slave configuration.

Thanks and Regards,