title: Passing parameters between Processors, beans etc., in Camel
body: <p>I have a situation as mentioned below</p>
  
  <p>Consider my below Route defined for instance</p>
  
  <pre><code>from("file:SOURCE/data?noop=true")
      .bean(Bean1.class, "someMethod")
      .process(someProcessorBean1)
      .bean(Bean1.class, "someMethod")
      .bean(ServiceBean.class, "serviceMethod")
      .process(someProcessorBean2)
      .bean(ServiceBean2.class, "serviceMethod2")
      .bean(Bean1.class, "someMethod")
      .process(someProcessorBean3)
      .bean(Bean1.class, "someMethod")
  </code></pre>
  
  <p>I am using Bean1's <code>someMethod()</code> for getting some parameters in Hashmap which is set in different processors which i will be using for some other purpose.</p>
  
  <p>I am able to set a Hashmap in camel context as below </p>
  
  <pre><code>getContext().setProperties(contextMap);
  </code></pre>
  
  <p>and I am able to retrieve the same in Bean1 as follows</p>
  
  <pre><code>exchange.getContext().getProperties();
  </code></pre>
  
  <p>Now, the hashmap available in  the <code>getContext()</code> is <code>Map&lt;String,String&gt;</code> and THAT IS NOT the Properties Map which we can access through @Properties in the method parameter.
  I want to set in <code>Map&lt;Object,Object&gt;</code> which can be accessible @Properties param.</p>
  
  <p>How do we set the Properties (@Properties) which accepts <code>Map&lt;Object,Object&gt;</code>?</p>