The broker will replicate message data from the master to the slave so that any message in a queue on the master will still be in the queue if the master fails and the slave takes over. However, if you consume the message then it's no longer in a queue and therefore will be removed from both the master and the slave.
The broker does not expose any kind of general purpose file replication functionality and you can't modify the journal yourself. If instead of writing your computations to a file you sent the results to a queue as durable messages then that data would be replicated from the master to the slave. Justin ----- Original Message ----- From: "aries.aries" <[email protected]> To: [email protected] Sent: Thursday, August 18, 2016 6:00:10 PM Subject: Re: Replicating a file on backup server Hi, Basically I am intercepting the mqtt messages and doing some computations. I store these to a file. I wanted this file to be available on the slave as well when it takes over the master. I need to use the values from the file to resume the computation. >From what I read from artemis documentation, it does not use any distributed store. I know that it can be done using shared storage but I wanted to know if it can be done using the "replication" HA policy. Can you please suggest me something that can be done for this? or can I append the data to the journal file and then read from it when it is replicated on the slave? -- View this message in context: http://activemq.2283324.n4.nabble.com/Replicating-a-file-on-backup-server-tp4715489p4715642.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
