I am a bit confused here on how to properly use ActiveMQ.
What i'm trying to do
I have system A which produces messages to a virtual topic. Then there's system B and C which both consume messages from the same virtual topic. There is a chance that system B or C might go offline. So when they come back online, I need them to receive all messages that were produced during the offline period.
What I have tried so far
I have read about durable subscribers (http://activemq.apache.org/how-do-durable-queues-and-topics-work.html and Virtual topics/queues and durability). This seems to fit my problem description and after doing some implementation, everything seems to work as I initially wanted.
What creates confusion
Then I read about Subscription Recovery Policy (http://activemq.apache.org/subscription-recovery-policy.html). Is this something I should configure or am I completely misunderstanding something? For example, if I want to store a specified amount of messages, should I configure a FixedCountSubscriptionRecoveryPolicy
or should I look into some pendingMessageLimitStrategy
?