This content has been marked as final.
Show 2 replies
-
1. Re: Pojo object as argument for Camel route
ozkin Sep 7, 2015 1:43 AM (in response to ozkin)Does anyone have any example of a Camel route where ${body} isn't a simple String but rather a Pojo object?
-
2. Re: Pojo object as argument for Camel route
ozkin Sep 7, 2015 6:45 AM (in response to ozkin)As I expected the solution was too simple.. I just had to explore a bit more how to work with the body in a Camel route.
${body.fieldName} syntax gives me the required access to the getter methods of Pojo's fields.
(I just didn't understand why ${body} in my app printed first field value instead of Pojo object's address, as it did in another test app).