title: How to call setter method on ${body} in a Camel route?
body: <p>I have tried to set a property on the body of a Java bean constituting the message in transit through a Camel route. I have tried various approaches e.g. </p>
  
  <pre><code>    &lt;route&gt;
          ...
          ..
          &lt;transform&gt;
              &lt;simple&gt;${body.label} = ${property.label}&lt;/simple&gt;
          &lt;/transform&gt;
          ...
          ..
      &lt;/route&gt;
  </code></pre>
  
  <p>in this particular case the <code>${body}</code> is a Java bean with a <code>setLabel(String label)</code> method and the <code>${property.label}</code> is set by other means in another route. In this example the result is not the desired (and I understand why), i.e. after the transform the body of the message is replaced with the <code>${body.label} = ${property.label}</code> string.</p>
  
  <p>My current work-around is to manually code a transformer as a Spring bean and set the label property of the Java bean in code but I like to find out if there is a simpler/smarter way to achieve this, preferably in XML DSL which is what I use?</p>
  
  <p>Regards, Ola</p>