Julia
Julia

Reputation: 11

ActiveMQ: how can I deliver all messages in a queue to many consumers?

I have a produser sending messages to the queue and two clients, that need to recieve all the messages from this queue. I considered using a topic whith durable subscribers, but I need consumers to recieve all messages even if they have been down for some time. Is there any solution for my case?

Upvotes: 1

Views: 437

Answers (1)

Erik Williams
Erik Williams

Reputation: 933

If you need all clients to get a copy of the same persistent message you'll want to use a Virtual Destination. You'll have to have each client listen to its own queue, but either method mentioned in the link will work.

Upvotes: 2

Related Questions