camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: How to unit test timeToLive messages
Date Thu, 02 Oct 2008 09:48:51 GMT
2008/10/2 Mick Knutson <mknutson@baselogic.com>:
> I am trying to send a message to a timeout queue:
>
> activemq:queue:channel/command/timeout?*timeToLive=40000*
>
> but what I want is for those messages to timeout after 4000 if they have not
> been consumed, and send that message to a DeadLetterChannel.
>
> How can I do this, and how can I unit test this?

The easiest way to solve this is to use the JMS providers Dead Letter
handling of expired messages; so subscribe to the Dead Letter topic
for expired messages on ActiveMQ.

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message