On Sat, Dec 8, 2012 at 1:15 AM, mail2bansi <mail2ba...@gmail.com> wrote: > Thanks Christian for quick response. I greatly appreciate it. > The ${noun} or ${verb} are String variables and are set into Exchange as > follows: > > > MessageDispatchHeader messageDispatchHeader = > xxxMessageEnvelope.getMessageDispatchHeader(); > final String noun = messageDispatchHeader.getNoun(); > final String verb = messageDispatchHeader.getVerb(); > > Exchange exchange = template.send("direct://contentBaseRouteStart", new > Processor() { > public void process(Exchange exchange) throws Exception { > > > // Noun Verb Combo. > exchange.getIn().setBody(xxxMessageEnvelope); > exchange.setProperty("noun", noun); > exchange.setProperty("verb", verb); >
You need to prefix the name with "property." as documented here http://camel.apache.org/simple eg ${property.noun} > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Simple-Expression-With-And-Condition-doesnt-work-in-Camel-2-8-tp5723702p5723778.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen