2008/10/2 Mick Knutson <[EMAIL PROTECTED]>:
> 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

Reply via email to