title: How do I pass a parameter to a Java Component from a Mule flow?
body: <p>I'm just getting started with mule and cant figure out how I can possibly pass a part of my request header as a parameter/argument to the Java component.</p>
  
  <p>My Java Component is as follows</p>
  
  <pre><code>public String processHeader(String in)
  {
     //process header
     System.out.print(" Header" + in);
  }
  </code></pre>
  
  <p>Ive been able to access <code>processHeader</code> in the following manner from the flow</p>
  
  <pre><code>            &lt;component&gt; 
                &lt;method-entry-point-resolver&gt; 
                &lt;include-entry-point method="processHeader" /&gt; 
                &lt;/method-entry-point-resolver&gt; 
                &lt;singleton-object class="my.test.mule.Processor" /&gt; 
              &lt;/component&gt; 
  </code></pre>
  
  <p>Accessing the above using <code>http://localhost:8080/test</code> . Prints <code>Header test</code></p>
  
  <p>I'm able to dump the contents of the header using the following</p>
  
  <p><code>&lt;logger level="INFO" doc:name="Logger" message="#[headers:INBOUND:*]"/&gt;</code></p>
  
  <p>But I cant seem to figure out how to pass the <code>message</code> as an argument to <code>processHeader</code> nor can I find any relevant examples. Any help would be appreciated.</p>
  
  <p>Btw, I'm using <code>Mule 3.5</code> if that matters.</p>