Re: Accessing property on bean in header?

2013-12-04 Thread Andrew Thorburn
Something is broken here - not sure if it's me or Camel, but I can't say that I expected that,given the following: setHeader(test).simple(${in.header.simpleBean} == null, Boolean.class).setHeader(test2).simple(${in.headers.simpleBean} != null, Boolean.class) *Both* headers are false! This is

Re: Accessing property on bean in header?

2013-12-04 Thread Andrew Thorburn
Had another crack at this, and my ultimate problem was that I didn't read the documentation carefully enough - I can do what I want, just not how I wanted to do it. What I wanted to have was a property called a.b.c, and then be able to call an OGNL expression on it. I had thought I could do it by

Accessing property on bean in header?

2013-12-03 Thread Andrew Thorburn
I've been having a bunch of trouble trying to do something that seems like it should be really simple... Using Camel 2.10.7 on ServiceMix 4.5.2. Basically, I'm sending a SOAP message, which contains a SOAP header that looks like this: uri:globalRequestHeader region=? version=?

Re: Accessing property on bean in header?

2013-12-03 Thread Andrew Thorburn
I should add here that I want to log the result, so I have something like: camel:log message=Message received with action [${in.header.SOAPAction}], operation [${in.header.operationName}], with GRH [${in.headers[soap.header.globalRequestHeader].getRegion()}] loggingLevel=INFO / But even with the

Re: Accessing property on bean in header?

2013-12-03 Thread Andrew Thorburn
Apologies for the spam, but this should be the last post, and I believe there's a bug somewhere. According the documentation (http://camel.apache.org/simple.html), I should be able to do something like this: ${in.header.type} is 'java.lang.String' And I will get back true or false. However, the

Re: Accessing property on bean in header?

2013-12-03 Thread Claus Ibsen
On Wed, Dec 4, 2013 at 8:22 AM, Andrew Thorburn nzi...@gmail.com wrote: Apologies for the spam, but this should be the last post, and I believe there's a bug somewhere. According the documentation (http://camel.apache.org/simple.html), I should be able to do something like this: