HI,
I have activemq setup with a consumer on a queue.
If the consumer hangs, there are pending messages in the queue.
To consume those messages, I restart the consumer.
To restart should I just unsubscribe/subscribe to the queue or should I
completely disconnect from the broker and reconnect.
Hi,
you may look into "retroactive consumers" and "retroactive
subscriptions". For a starting point, visit
http://activemq.apache.org/retroactive-consumer.html and
http://activemq.apache.org/subscription-recovery-policy.html
Best regards,
Martin
On Tue, Aug 30, 2011 at 12:00 PM, stratio wrote:
Hello, this is my situation:
I have a topic on which i publish several messages and after the last one i
stop publishing on the topic.
Later I subscribe to this topic with an AJAX client.
Is there a way to recover the last message published on the topic so that
the client can receive it?
--
V
you need to use CACHE_CONSUMER cache level such that there is only a
single consumer.
On 29 August 2011 18:23, nrichards wrote:
> I have a single consumer on each of a number of queues and a prefetch value
> of 1, and know that messages will arrive faster than they can be processed.
> In each que