On Wed, Feb 26, 2014 at 5:32 PM, mister blinky <[email protected]> wrote:
> if I have a property
>
>      foo=bar
>
> And I want to use it within a choice(), this works (i.e., resolves to true)
>
>      .choice()
>           .when(simple("${properties:foo} == 'bar'"))
>
> but this does NOT work (i.e., does not resolve to true)
>
>      .choice()
>           .when(property("foo").isEqualTo("bar"))
>
> The latter is more intuitive but doesn't work. Why? Am I doing something
> wrong? Is this a bug?
>

No, property is for looking up a property on the Exchange - its NOT
for property placeholders.


> I am using Camel 2.12.2.
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Java-DSL-Resolving-property-within-a-choice-tp5748020.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to