Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 29755 invoked from network); 18 Feb 2009 08:39:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2009 08:39:12 -0000 Received: (qmail 5678 invoked by uid 500); 18 Feb 2009 08:39:11 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 5660 invoked by uid 500); 18 Feb 2009 08:39:11 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 5649 invoked by uid 99); 18 Feb 2009 08:39:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 00:39:11 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.218.216 as permitted sender) Received: from [209.85.218.216] (HELO mail-bw0-f216.google.com) (209.85.218.216) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 08:39:03 +0000 Received: by bwz12 with SMTP id 12so5511810bwz.20 for ; Wed, 18 Feb 2009 00:38:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=PzR/uJ3ZuG7BM0x9CW2XZiycovZSk8dcTYWU89wO8Sw=; b=UmxZg6T9c4+9MhX86agTOWjHhVaJ4p9PQT3HqDVn+ADRDLoKwxpAXp3YO17H6dx/fa 4gKfD4hJMsXjBdqJI1vO1AMoYWthF12sl/iSbbMC4zP5RXgZe0FzdIRUArFX3UpENZqc D+VpeVmNQfzcnjG6JmrWtkUwFBwzqg2S3Ua3s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=CSVrtU33AkGvTYGjzH2HSvXxRVw03vNGqmQ0GPrnuOW2OWKpa8m2AO8QxzdKHFzf8/ OfZ8ILfVH6heSUWZ2xPQOKWR2ec4tqwpl5fPI0yDVfq2sUDB5dLQoVqYO+YXUoNC2Rax MofTVB3c3PpZvehY9Uy1oKJBladH053cCYqqc= MIME-Version: 1.0 Received: by 10.223.111.134 with SMTP id s6mr2676207fap.60.1234946321286; Wed, 18 Feb 2009 00:38:41 -0800 (PST) In-Reply-To: <22071417.post@talk.nabble.com> References: <22060777.post@talk.nabble.com> <22071417.post@talk.nabble.com> Date: Wed, 18 Feb 2009 09:38:41 +0100 Message-ID: <5380c69c0902180038s1e0fe614w9852aed1010e1959@mail.gmail.com> Subject: Re: Redeliver to end of Endpoint/Queue? From: Claus Ibsen To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi On Wed, Feb 18, 2009 at 4:21 AM, efender wrote: > > After thinking about this some more, what I'd really like is to be able to > consume a message at some time in the future. If an exception occurs during > processing, instead of the processing thread sleeping for the delay period, > the message should be re-delivered with something like a consume_time > header. Then the message consumer will change its selector every time it > polls, something like "consume_time > System.currentTimeInMillis()" > Thoughts anyone? Interesting idea. I am thinking that we could re use the Quartz component or eg the timer. Then you could send the Exchange to the quartz component with - The Original Exchange - The Time in the future it should be resend - URI to where to send it to Then you would be able to do something like onException(Exception.class) .handled(true) .to("bean:prepareForFutureRedelivery") .to("quartz://redeliverjob") Then the bean prepareForFutureRedelivery prepares the Exchange by - setting a special header with the future time - setting a special header with the endpoint URI it should be sent to when activated We could of course prepare such a bean/processor out of the box in Camel and have a nice DSL for it. But before hand we need to get the pieces together, we can always polish it later. Maybe we can use the timer instead of quartz or some other new component Any thoughts? > -- > View this message in context: http://www.nabble.com/Redeliver-to-end-of-Endpoint-Queue--tp22060777s22882p22071417.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/