title: How do I process a zip file with Camel using the Spring DSL?
body: <p>I want to monitor a directory for zip files and then individually process the files in the zip file using Camel and the Spring DSL.  Is something like the following possible?</p>
  
  <pre><code>&lt;camel:route&gt;
    &lt;camel:from uri="file:/src/Path/"/&gt;
    &lt;camel:split streaming="true"&gt;
      &lt;zipSplit/&gt;
      &lt;camel:to uri="bean:fileProcessor?method=processStream"/&gt;
    &lt;/camel:split&gt;
  &lt;/camel:route&gt;
  </code></pre>
  
  <p>Ok so I found that the following works for a zip file containing one file but the question is how can a zip file containing more than one file be processed?</p>
  
  <pre><code>&lt;bean id="zipFileDataFormat" class="org.apache.camel.dataformat.zipfile.ZipFileDataFormat"/&gt;
  
  &lt;camel:camelContext&gt;
      &lt;camel:contextScan/&gt;
      &lt;camel:route&gt;
          &lt;camel:from uri="file:///C:/testSrc/?delay=6000&amp;noop=true&amp;idempotent=false"/&gt;
          &lt;camel:unmarshal ref="zipFileDataFormat"/&gt;
          &lt;camel:to uri="file:///C:/testDst"/&gt;
      &lt;/camel:route&gt;
  &lt;/camel:camelContext&gt;
  </code></pre>
  
  <p>Note that the file is not being sent to a bean for processing just unzipped into another directory.</p>