xml - Set exchange body to null -


i trying set null body of exchange in xml definiton this:

<camel:setbody>     <camel:constant>null</camel:constant> </camel:setbody> 

or this:

<camel:setbody>     <camel:simple>null</camel:simple> </camel:setbody> 

they give string "null" in end.

any idea right form is?

how this?

<camel:setbody>     <camel:simple>${bodyas(null)}</camel:simple> </camel:setbody>     

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -