Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 85574 invoked from network); 12 Feb 2011 12:16:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2011 12:16:27 -0000 Received: (qmail 85629 invoked by uid 500); 12 Feb 2011 12:16:27 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 85327 invoked by uid 500); 12 Feb 2011 12:16:24 -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 85319 invoked by uid 99); 12 Feb 2011 12:16:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Feb 2011 12:16:23 +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; Sat, 12 Feb 2011 12:16:19 +0000 Received: by qyl38 with SMTP id 38so284268qyl.11 for ; Sat, 12 Feb 2011 04:15:58 -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:content-transfer-encoding; bh=naAQWwckFIEX70JM7d/l5tt8udBuuW5TAcYDtgtMAzs=; b=Gu8L5Bpe0z/2Nf2lZPUutp9P+8+q95eTqj667Q9MQVR3wVHNbCzDFObDd0xuA/ynay rl6W2H45D7LQyvQqJBxZccKntquO11qnzRK+CStcrctQ8CB6KHNHqtTdU63jSHiMTfH4 D5PN4bKBzHbgcsgsMyhmATOUK+jfi2rXRTo2g= 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:content-transfer-encoding; b=sMyuTsO9b0c12pOxZOwYcuxSVskcHooywm5KcE0l976Hiv7KKd250vZCEhlQAK8dNt 0c+1smMe8WT4FEkG7bqCEps7b1ksWlkG/lYMllEQ5RrflGq6isrGldUxdmrHVYKgA5wU MwsIQ5E3jwOImIYI71YIxFzuss3eBvE3Qmw3g= Received: by 10.229.85.208 with SMTP id p16mr1454030qcl.71.1297512956925; Sat, 12 Feb 2011 04:15:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.238.4 with HTTP; Sat, 12 Feb 2011 04:15:36 -0800 (PST) In-Reply-To: <1297432371853-3381184.post@n5.nabble.com> References: <1297432371853-3381184.post@n5.nabble.com> From: Claus Ibsen Date: Sat, 12 Feb 2011 13:15:36 +0100 Message-ID: Subject: Re: [Camel 2.4/2.5] 2 questions about RedeliveryPolicy tag To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Feb 11, 2011 at 2:52 PM, kaoru wrote: > > Hi there, > =A0I have a redeliveryPolicy tag in my xml file: > > /> > deadLetterUri=3D"swiftmq:badQueue" useOriginalMessage=3D"true"> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0retryAttempted= LogLevel=3D"WARN" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0retriesExhaust= edLogLevel=3D"ERROR" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0redeliveryDela= y=3D"2000"/> > > > I tried to use placeholder for those properties, but it didn't recognize = it > no matter I use "{{}}", "${}" or "${properties:} > So the 1st question: can I use place holder in redeliveryPolicy tag? > > > Then I tried to create a redeliveryPolicy bean as a workaround. but anoth= er > issue came out: > > > It didn't understand the ref: > Caused by: org.springframework.beans.NotWritablePropertyException: Invali= d > property 'ref' of bean class [org.apache.camel.processor.RedeliveryPolicy= ]: > Bean property 'ref' is not writable or has an invalid setter method. Does > the parameter type of the setter match the return type of the getter? > > The 2nd question: why the ref attribute is in the xsd file but we can't u= se > it? how can we use place-hoder for redeliveryPolicy? > For the bean stuff you should id, as its a spring bean tag // SET properties on bean here > would you shed a light on this for me please > > Thank you, > Qiao > > -- > View this message in context: http://camel.465427.n5.nabble.com/Camel-2-4= -2-5-2-questions-about-RedeliveryPolicy-tag-tp3381184p3381184.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --=20 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/