Re: Unexpected behaviour of Camel Simple expression

2014-12-07 Thread welshstew
Thanks Taariq - plenty of ways to skin this camel - which is what is so nice about it. I managed to get what I wanted by using a simple java processor. Cheers, Stu. -- View this message in context: http://camel.465427.n5.nabble.com/Unexpected-behaviour-of-Camel-Simple-expression-tp5760163p

Re: Unexpected behaviour of Camel Simple expression

2014-12-05 Thread Taariq Levack
The type converter ends up looking for a type Thingwithbrackets, the quotes and brackets don't make it easy. I really don't know if it's meant to work that way, when Simple gets tricky I reach for something like Groovy or Java. > On 05 Dec 2014, at 09:08, welshstew wrote: > > Thanks for your

Re: Unexpected behaviour of Camel Simple expression

2014-12-04 Thread welshstew
Thanks for your response Taariq - but as you can see form the log output this isn't the case. The myEval bean actually doesn't do anything but the String it receives during the simple expression evaluation is missing the single quotes - as per the log output: INSERT INTO SOMETHING (value,'Thing (

Re: Unexpected behaviour of Camel Simple expression

2014-12-04 Thread Taariq Levack
Hi and welcome You don't say what myEval does, but the following expression does what you want. INSERT INTO SOMETHING (${body[VALUE_ONE]},${body[VALUE_TWO]}) Taariq On Fri, Dec 5, 2014 at 1:51 AM, welshstew wrote: > Long time lurker - first time poster! Please be nice :) > > I have a very si