Thank you all for the answers,
eventually I implemented Raul's suggestion,
my producer is a camel route and I set the TTL on the URI:

        <route id="conversionLogRequestRoute">
            <from uri="direct:conversionLogRequest" />
            <log message="Sending conversion log request to ActiveMQ" />
            <to
uri="activemq:Log.conversionLogRequestQueue?timeToLive=120000" />
        </route>

and I configured an individual DLQ for  Log.conversionLogRequestQueue.

the Delay and Schedule Message Delivery sounds cleaner , I wonder if I can
set the scheduler properties on the URI too, I will test that tomorrow. 



--
View this message in context: 
http://camel.465427.n5.nabble.com/how-to-consume-messages-by-timestamp-tp5736463p5736603.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to