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

Previous Topic Next Topic
 
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....

santhosh99
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://192.168.0.15:61616" 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://192.168.0.15:61616" shutdownOnMasterFailure="false"> <amq:persistenceAdapter>
<amq:kahaPersistenceAdapter directory="C:\activemq-data" maxDataFileLength="33554432"/> </amq:persistenceAdapter>
<amq:transportConnectors>
 <amq:transportConnector uri="tcp://localhost:61616"/>
</amq:transportConnectors>
</amq:broker>

And jndi.properties for Slave is as below:
java.naming.provider.url = failover://(tcp://192.168.0.15:61616,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,
Santhosh