Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A3E68038 for ; Sat, 20 Aug 2011 04:10:47 +0000 (UTC) Received: (qmail 39338 invoked by uid 500); 20 Aug 2011 04:10:46 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 38943 invoked by uid 500); 20 Aug 2011 04:10:39 -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 38933 invoked by uid 99); 20 Aug 2011 04:10:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Aug 2011 04:10:38 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of taariql@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-ww0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Aug 2011 04:10:29 +0000 Received: by wwi18 with SMTP id 18so2707849wwi.20 for ; Fri, 19 Aug 2011 21:10:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=1ZLGyZyvsZwvl+1jxTGF0GyA4K6LqUWI78a6KMiDO94=; b=uA/2cO0Q336NlGdBxjRfpdV7OWAK5SMeus6SyaHHpd2V+nmbSy3IIdNYA02S1307FP BjBUPEtzvu3nDc8/+2XqR3iizckfzu86qt0U/2jI9l7U1FuT3TgDYs0kGxvrvHPfNqG1 QiLcCqVopSHGY+P05BQA06CVkjBk5liURAR1Y= Received: by 10.216.72.11 with SMTP id s11mr104691wed.19.1313813407663; Fri, 19 Aug 2011 21:10:07 -0700 (PDT) Received: from [41.125.36.212] ([41.125.36.212]) by mx.google.com with ESMTPS id e7sm2558515wed.9.2011.08.19.21.10.04 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Aug 2011 21:10:06 -0700 (PDT) Subject: Re: Choice always return turn in first test References: <1313788192491-4717029.post@n5.nabble.com> From: Taariq Levack Content-Type: text/plain; charset=utf-8 X-Mailer: iPhone Mail (8B117) In-Reply-To: <1313788192491-4717029.post@n5.nabble.com> Message-Id: Date: Sat, 20 Aug 2011 06:09:45 +0200 To: "users@camel.apache.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (iPhone Mail 8B117) Hi You forget to use "end" Taariq On 19 Aug 2011, at 11:09 PM, garrydias wrote: > Hi folks > it=C2=B4s my scenario?: >=20 > My body message is an instance of:=20 > *package foo; > public class MyMessageObject > { > private Map<String, Serializable> property; > // setter & gettter > public String toString(){ return "toString called";} > }* >=20 > My xml is: > > > /> > uri=3D"file://c:/dev/camel_otherwise" /> > =20 > > > > > > ${in.body.property['key']} =3D=3D 'not > garrydias' > > > > > > > > > > >=20 > wt hell my wire tap RoutingSpy.execute logs the MyMessageObject.property > value as {key=3Dgarrydias} but the choice never goes to otherwise? >=20 > I already tried: > - invert the order in the logical test to force the cast of Serializable t= o > String:=20 > 'not garrydias' =3D=3D ${in.body.property['key']} > - create a setHeader with ${in.body.property['key']} value an try > ${in.header =3D=3D 'not garrydias' > - cut off the single quotes > ${in.body.property[key]} =3D=3D 'not garrydias' >=20 > But wasn t solved >=20 > I appreciate any help >=20 > -- > View this message in context: http://camel.465427.n5.nabble.com/Choice-alw= ays-return-turn-in-first-test-tp4717029p4717029.html > Sent from the Camel - Users mailing list archive at Nabble.com.