To pick pending messages, consumer should just unsubscribe/subscribe or completely disconnect/connect from broker

2011-08-30 Thread manua
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.

Re: Retrieve last message published in a topic

2011-08-30 Thread Martin C.
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:

Retrieve last message published in a topic

2011-08-30 Thread stratio
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

Re: AMQ 5.5 non-persistent messages not processed, counted as in-flight

2011-08-30 Thread Gary Tully
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