Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 34961 invoked from network); 28 Jan 2011 06:40:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2011 06:40:34 -0000 Received: (qmail 37989 invoked by uid 500); 28 Jan 2011 06:40:34 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 37697 invoked by uid 500); 28 Jan 2011 06:40:32 -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 37689 invoked by uid 99); 28 Jan 2011 06:40:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 06:40:31 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 06:40:26 +0000 Received: by qyl38 with SMTP id 38so473309qyl.11 for ; Thu, 27 Jan 2011 22:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=2ByQMWR8fLcEXuyhFvy71MVq8ghtdtfN+e60yGWTCEc=; b=YEYfAJkAyESnR6dFtYpJum9VZL3Z9BMqkcOVMreKx64nWa9AQM/Ss8pGaeZy5+n5Kg omHsizxUDBA4q9a/e3SWwLTutvhoNM8h5eVl624FnorvWvaUyFjTVLnGW8vvwidYkKrG XooxLC3tTZsHUYgcDCNMMHLINIM+eNgfpEOkg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=l8lKQcS12IJsryIC79/Zfwq9zcoeFMdkdWe1VkahGC47uCbn5quVvYL6zme13bh5DJ 2uKhqxZBGLcTa0mhG2v2vzCU73Q+16+5S7g3dHOjb4ce4UqoLJ4kvseexMpobjJkRK51 8M916xwzflZ0COSvaSkpkwAY7ARSvSb7Zeb4c= Received: by 10.229.230.10 with SMTP id jk10mr2410476qcb.299.1296196805715; Thu, 27 Jan 2011 22:40:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.238.4 with HTTP; Thu, 27 Jan 2011 22:39:45 -0800 (PST) In-Reply-To: <1296156246187-3360294.post@n5.nabble.com> References: <1296156246187-3360294.post@n5.nabble.com> From: Claus Ibsen Date: Fri, 28 Jan 2011 07:39:45 +0100 Message-ID: Subject: Re: How to completely disable redelivery in Camel 1.6.0 To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jan 27, 2011 at 8:24 PM, alik wrote: > > Hi. > > What is the easiest way to disable redelivery in Camel 1.6.0 using Sprint > config XML? My routes are hard-coded so can't do much there. Disabling > redelivering for the entire Camel context will be fine. From what I've read > in this forum I understood that I should use errorHandlerRef property of the > camelCintext. Do I have to define dead letter channel to be referenced by > this property or there is a way to instruct Camel never even attempt to > redeliver? If I have to define the dead letter channel what > DeadLetterChannelBuilder properties I should provide in order to get the > simplest dead letter channel that will always ignore anything it receives? > > Thank you, > You will have to define a spring as the DeadLetterChannel where you configure the redelivery policy to use 0 as maximumRedeliveries. See the dzone ref card which shows how to do this with Camel 1.x. http://refcardz.dzone.com/refcardz/enterprise-integration > --Alexander > -- > View this message in context: http://camel.465427.n5.nabble.com/How-to-completely-disable-redelivery-in-Camel-1-6-0-tp3360294p3360294.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/