You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ojs <ol...@siegmar.net> on 2006/10/17 17:55:23 UTC

Random questions about the dead letter queue

Hello!

I'd be very happy if someone could give me some answers on this:

How can messages be moved from the dead letter queue to a 'standard' queue
when using kaha persistence?
Are there any maintenance tools for kaha persistence?
How to configure that messages won't ever be moved to the dead letter queue
(endless retry)?


BTW: I'm using ActiveMQ 4.1-SNAPSHOT.


Best

Oliver

-- 
View this message in context: http://www.nabble.com/Random-questions-about-the-dead-letter-queue-tf2460396.html#a6857899
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Random questions about the dead letter queue

Posted by James Strachan <ja...@gmail.com>.
On 10/19/06, Lou Bona <lv...@thecatalis.com> wrote:
> 4.0.2 doesn't seem to be working either.
>
> Or am I making a bad assumption, are expired messages supposed to go to
> the DLQ? If not, what's the best way to find out and programmatically
> handle expired messages (these are time sensitive and if the intended
> consumer doesn't pick them up in time I need to reroute them)?

This is a pending feature request thats waiting for someone to implement it

http://issues.apache.org/activemq/browse/AMQ-450
-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Random questions about the dead letter queue

Posted by Lou Bona <lv...@TheCatalis.com>.
4.0.2 doesn't seem to be working either.

Or am I making a bad assumption, are expired messages supposed to go to 
the DLQ? If not, what's the best way to find out and programmatically 
handle expired messages (these are time sensitive and if the intended 
consumer doesn't pick them up in time I need to reroute them)?


Christopher G. Stach II wrote:

> Lou Bona wrote:
>
>> hi,
>>
>> sounds like you got the DLQ working. I'm stumped, maybe you can help. 
>> I'm looking for some docs, sample code, or just some advice on what 
>> I'm missing.
>>
>> For the most basic case I'm using the example code include in the 
>> distro (4.0.1), and setting the timeToLive to 10 seconds. I see the 
>> that the messages expire, but I don't see them move out of the queue 
>> until the broker hits a checkpoint and clears out the old messages.
>>
>> I tried consuming "ActiveMQ.DLQ.Queue.TEST.FOO" - which is what 
>> IndividualDeadLetterStrategy.getDeadLetterQueueFor() says the DLQ is 
>> for TEST.FOO, and I tried a variety of things with JMX and Advisory 
>> Messages, but I'm having zero luck getting expired messages.
>>
>>
>> Any clues on what I'm missing would be appreciated,
>>
>> Lou
>>
>
> Expiration doesn't work until [supposedly] 4.0.2.  You will only get 
> DLQ messages <4.0.2 from going over the redelivery limit.
>

Re: Random questions about the dead letter queue

Posted by "Christopher G. Stach II" <cg...@ldsys.net>.
Lou Bona wrote:
> hi,
> 
> sounds like you got the DLQ working. I'm stumped, maybe you can help. 
> I'm looking for some docs, sample code, or just some advice on what I'm 
> missing.
> 
> For the most basic case I'm using the example code include in the distro 
> (4.0.1), and setting the timeToLive to 10 seconds. I see the that the 
> messages expire, but I don't see them move out of the queue until the 
> broker hits a checkpoint and clears out the old messages.
> 
> I tried consuming "ActiveMQ.DLQ.Queue.TEST.FOO" - which is what 
> IndividualDeadLetterStrategy.getDeadLetterQueueFor() says the DLQ is for 
> TEST.FOO, and I tried a variety of things with JMX and Advisory 
> Messages, but I'm having zero luck getting expired messages.
> 
> 
> Any clues on what I'm missing would be appreciated,
> 
> Lou
> 

Expiration doesn't work until [supposedly] 4.0.2.  You will only get DLQ 
messages <4.0.2 from going over the redelivery limit.

-- 
Christopher G. Stach II

Re: Random questions about the dead letter queue

Posted by Lou Bona <lv...@TheCatalis.com>.
hi,

sounds like you got the DLQ working. I'm stumped, maybe you can help. 
I'm looking for some docs, sample code, or just some advice on what I'm 
missing.

For the most basic case I'm using the example code include in the distro 
(4.0.1), and setting the timeToLive to 10 seconds. I see the that the 
messages expire, but I don't see them move out of the queue until the 
broker hits a checkpoint and clears out the old messages.

I tried consuming "ActiveMQ.DLQ.Queue.TEST.FOO" - which is what 
IndividualDeadLetterStrategy.getDeadLetterQueueFor() says the DLQ is for 
TEST.FOO, and I tried a variety of things with JMX and Advisory 
Messages, but I'm having zero luck getting expired messages.


Any clues on what I'm missing would be appreciated,

Lou




James Strachan wrote:

> On 10/17/06, ojs <ol...@siegmar.net> wrote:
>
>>
>> Hello!
>>
>> I'd be very happy if someone could give me some answers on this:
>>
>> How can messages be moved from the dead letter queue to a 'standard' 
>> queue
>> when using kaha persistence?
>> Are there any maintenance tools for kaha persistence?
>> How to configure that messages won't ever be moved to the dead letter 
>> queue
>> (endless retry)?
>
>
> The MBeans are the way to work with queues, delete messages, move them
> from a DLQ to their original queues etc.
>
> If you don't want to use DLQs just change the redelivery policy to
> retry forever.
>

Re: Random questions about the dead letter queue

Posted by ojs <ol...@siegmar.net>.

James.Strachan wrote:
> 
> If you don't want to use DLQs just change the redelivery policy to
> retry forever.
> 

But how? I tried setting maximumRedeliveries to 0 and -1 but both results in
doing no redelivery at all. I grep'ed the code and found only code like

if (redeliveryCounter > redeliveryPolicy.getMaximumRedeliveries()) ...


Best

Oliver

-- 
View this message in context: http://www.nabble.com/Random-questions-about-the-dead-letter-queue-tf2460396.html#a6878961
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Random questions about the dead letter queue

Posted by James Strachan <ja...@gmail.com>.
On 10/17/06, ojs <ol...@siegmar.net> wrote:
>
> Hello!
>
> I'd be very happy if someone could give me some answers on this:
>
> How can messages be moved from the dead letter queue to a 'standard' queue
> when using kaha persistence?
> Are there any maintenance tools for kaha persistence?
> How to configure that messages won't ever be moved to the dead letter queue
> (endless retry)?

The MBeans are the way to work with queues, delete messages, move them
from a DLQ to their original queues etc.

If you don't want to use DLQs just change the redelivery policy to
retry forever.

-- 

James
-------
http://radio.weblogs.com/0112098/