how to access body/exchange in camel route -
i trying log exchange or body in camel route as:
<log message="body:${body}"/>
this prints blank ie. "body : ". processors called in same route passing parameters as:
<bean id="userbean" method="findsomeuser(${body.getuserid})"/>
how log exchange/body camel route if 1 wants see contents of exchange ?
the expression used correct body empty @ time. try removing setbody part route , same result.
<route > <from uri="timer://foo?fixedrate=true&period=5000"/> <setbody> <constant>message</constant> </setbody> <log message="body:${body}"/> </route>
Comments
Post a Comment