title: Setting Property in Apache Camel in XML
body: <p>I'm new to apache camel. Need help on the below. </p>
  
  <p>I have 2 routes. From route A I'm sending only 1 property to another route using a method call. like </p>
  
  <pre><code>        &lt;camel:route id="processMessageRoute"&gt;
          &lt;camel:from uri="direct:processMessageRoute" /&gt; 
  
          &lt;camel:setProperty propertyName="MessageMap"&gt;
              &lt;camel:method bean="ServiceBean" method="initMessageMap" /&gt;
          &lt;/camel:setProperty&gt;
  
          &lt;camel:setProperty propertyName="MessageBelongerMap"&gt;
              &lt;camel:method bean="ServiceBean" method="initMessageBelongerMap" /&gt;
          &lt;/camel:setProperty&gt;
  
      &lt;camel:to uri="bean:ServiceBean?method=saveMessageData(${property.MessageBelongerMap})" /&gt;
  </code></pre>
  
  <p>Inside ServiceBean class, I have </p>
  
  <pre><code>public boolean saveMessageData(Map&lt;String, Object&gt; MessageBelongerMap) {
  
      producerTemplate.requestBody("direct:processMessage", MessageBelongerMap);
  
      return true;
  </code></pre>
  
  <p>Now my problem is I need to pass both the properties MessageMap, MessageBelongerMap but I don't see any option here. Need help on this? </p>