You must have spaces around the operator, eg space==space Its also stated in the documentation, see the operator section http://camel.apache.org/simple
And some older releases of Camel had an issue with comparing using numbers in the <simple> language. On Wed, Dec 21, 2011 at 3:52 PM, ebinsingh <[email protected]> wrote: > Hi All, > > I am looking to compare the CamelBatchSize available in the Exchange header > to an integer using Spring DSL. > I tried various options but not getting it right. > > 1. <simple>${header.batchSize}==2000</simple> > 2. <simple>${in.header.batchSize}==2000</simple> > > I tried loging the above values but they were empty. > > <log message="processing PARSED messeges [ ${in.header.file.name} > ${in.header.batch.size} ]"/> > processing PARSED messeges [ ] > > Please let me know if there is a place where I could get all the Header > values that I could use in spring DSL. > Will use Simple give me the right comparison. > > > Thanks & regards, > Ebe > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Extracting-Header-values-tp5092102p5092102.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
