Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 97267 invoked from network); 11 Dec 2008 16:26:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2008 16:26:13 -0000 Received: (qmail 54492 invoked by uid 500); 11 Dec 2008 16:26:25 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 54473 invoked by uid 500); 11 Dec 2008 16:26:25 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 54462 invoked by uid 99); 11 Dec 2008 16:26:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2008 08:26:24 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2008 16:26:03 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LAoMA-0003TC-Ll for users@activemq.apache.org; Thu, 11 Dec 2008 08:25:42 -0800 Message-ID: <20958859.post@talk.nabble.com> Date: Thu, 11 Dec 2008 08:25:42 -0800 (PST) From: mmocnik To: users@activemq.apache.org Subject: Re: Rollback and acknowledge In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: m.mocnik@e-nnovation.at References: <20934209.post@talk.nabble.com> <20937721.post@talk.nabble.com> <20952098.post@talk.nabble.com> <20956173.post@talk.nabble.com> <20956424.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Okay, thanks, that looks like something in the right direction, though I think it will take me some time to understand camel and how to use it with activemq. Thanks again, Marko James.Strachan wrote: > > 2008/12/11 mmocnik : >> >> >> >> James.Strachan wrote: >>> >>> 2008/12/11 mmocnik : >>>> >>>> >>>> James.Strachan wrote: >>>>> >>>>>> [...] >>>>> though I think putting redelivered messages at the tail of the queue >>>>> (so its dispatched last) is what you want - so resending the message >>>>> rather than rolling back & closing is probably more suitable >>>>> >>>> Yes, that is what I want to achieve, but if I do it that way I'm >>>> loosing >>>> the >>>> benefits of redelivery by ActiveMQ: >>>> - RedeliveryDelay (with exponentialBackoff) >>>> - RedeliveryLimit >>> >>> But those don't matter if the next message you are processing is a >>> totally different message? >>> >>> -- >>> James >>> ------- >>> http://macstrac.blogspot.com/ >>> >>> Open Source Integration >>> http://fusesource.com/ >>> >>> >> >> Well, not for the next message, but for the message I want to resend. > > Sending the message to be rolled back to the head of the queue will > add a delay (since consumers will have to process all pending messages > first). > > If you want an explicit delay before republishing the message I'd > suggest using Camel with the delayer... > http://activemq.apache.org/camel/delayer.html > > so you'd send to the delay queue with some timeout; then the delayer > could then route it back to the queue > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source Integration > http://fusesource.com/ > > -- View this message in context: http://www.nabble.com/Rollback-and-acknowledge-tp20934209p20958859.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.