title: How to Pass POJO over JMS Queue in Apache Camel
body: <p>I am relatively new to Jboss Fuse &amp; Apache Camel. I poll a directory for specific XML files (using file filter) and extract info from XML content and save it in POJO, which then needs to be sent over JMS Queue (databaseQueue) along with the XML file to a route where I need to extract the params from POJO and insert in Database. But I am unable to pass the POJO over JMS queue to be able to retrieve in another route. I can't set the POJO in body as the original payload will be lost. Please help. Below is the sample route.</p>
  
  <pre><code>&lt;route id="fileRoute"&gt;
          &lt;from uri="file:{{PFlowIn_AEROW}}?delay={{PFlowScanDelay}}&amp;amp;filter=#fileFilter&amp;amp;delete=true"/&gt;                 
          &lt;process ref="saveFlowParamsInPOJO"/&gt;
          &lt;recipientList&gt;
              &lt;simple&gt;activemq:queue:databaseQueue, activemq:queue:messageArchiveQueue, activemq:queue:XmlValidationQueue&lt;/simple&gt;
          &lt;/recipientList&gt;
      &lt;/route&gt;
  </code></pre>