1

So I have some routes on camel spring dsl which behaves and work just as expected. However when I deploy these routes on karaf they behave different, for example 1) I have this condition <when><simple>${body} == null</simple></when> it evaluates to true even if body is empty on in karaf

2) I have one processor where I check if condition if(body != null), it is evaluating to true even though body is not null.

Is there any specific reason that it works just fine in every other environment but fails in karaf.

nullP
  • 31
  • 2

1 Answers1

3

The correct syntax is

<when><simple>${body} == null</simple></when>

Notice you are missing a $

Claus Ibsen
  • 56,060
  • 7
  • 50
  • 65