Hi Tim,
Thanks for your reply. 
I have used the shared filesystem concept (refering
http://activemq.apache.org/shared-file-system-master-slave.html) and tried
to design the master slave cluster in two different machines. Below is the
enivronment details:

apache-activemq-5.13.3
Two Systems(local-master broker and remote-slave broker ) with Ubuntu
Operating system
Created a Shared folder in local system and given all read and write access
to the kahadb folder.

In local system activemq's directory I have configured the activemq.xml file
with the below configuration:

<persistenceAdapter>
        <kahaDB directory="/home/Downloads/sharedFolder/kahadb"/>
 </persistenceAdapter>
<networkConnectors>
        <networkConnector uri="static:(tcp://ip address of remote
system:61617)"/>
</networkConnectors>

In Remote system activemq's directory I have configured the activemq.xml
with the below configuration:

<persistenceAdapter>
        <kahaDB directory="smb://ip address of local
system/pathto/sharedFolder/kahadb"/>
 </persistenceAdapter>
<networkConnectors>
        <networkConnector uri="static:(tcp://ip address of local 
system:61616)"/>
</networkConnectors>

And When I start the client program and place the messages (say some 30
messages) into the queues I have observed that the shared directory is not
working properly. I stopped the master broker after 6 messages are placed
then remote slave broker has taken the placing messages task but only 24
messages are shown in the queue UI. The first 6 messages are not shared with
the slave broker.

Is there are configuration part I missed ? Can you please help me in the
configuration part?

Thanks
Srikanth



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/can-we-share-the-data-folder-of-activemq-between-two-machines-local-and-remote-tp4711666p4711728.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to