title: Apache Camel single route to get message from multiple source
body: <p>I need to write a single Apache Camel route to</p>
  
  <ol>
  <li>Receive Message (which contain File-Location) from Active-MQ JMS-Queue.</li>
  <li>Using location in received-message from JMS-Queue read file content.</li>
  <li>Send that file content to another Active-MQ JMS-Queue.</li>
  </ol>
  
  <p>I can write two separate route 1) To get message from Active-MQ and 
    2) To read from a file in folder using static file-name and send to JMS-queue. 
  But my requirement is to read the content only from those files, for which I am getting details from JMS queue. Means reading content from files is selective and based on condition.</p>
  
  <p>Following is the sample Java DSL Route configuration I required for it.</p>
  
  <pre><code>from("activemq:queue:filelocationQueue")
   .from("file://&lt;&lt;File-Location from JMS-Queue&gt;&gt;?noop=true")
     .convertBodyTo(String.class)
        .to("activemq:queue:fileContent");
  </code></pre>
  
  <p>I know it is not possible to use two "from" inside a route. But how can I put this kind of logic using Apache Camel?</p>
  
  <p>Guys please suggest me the solution, I am also ready to use two Camel route to implement this logic.</p>