Hi

A kind of similar test is this unit test:
JmsRouteTimeoutTest

In the camel-jms component. You can find the source from:
http://svn.apache.org/viewvc/activemq/camel/trunk/

Could you take a look at this one for starters?



Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: 2. oktober 2008 02:56
To: Camel
Subject: How to unit test timeToLive messages

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?


-- 
---
Thank You...

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com

Reply via email to