2 Replies Latest reply on Sep 7, 2015 6:45 AM by Max Ozkin

    Pojo object as argument for Camel route

    Max Ozkin Apprentice

      Hi, this is perhaps very basic question. Imagine there is a REST binding with a method with multiple parameters. Then there is a POJO class, which combines all these parameters, so that in Java service interface we have only one parameter. Then there is a Camel component, which implements that service interface.

       

      How to access POJO member variables from the Camel route (Java DSL)? If I use ${body} then it just points to the first member variable from the given POJO object, but I would like to be able to have a separate access to each of the variables...