title: WSO2 VFS parallel processing
body: <p>I'm using WSO2 ESB to process files: an inbound-endpoint with polling, detect a file and pass it to a sequence. That sequence read the file and process records (writing to database).</p>
  
  <p>My question is about processing multiple files at once.
  For now I have this configuration:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;inboundEndpoint name="AssuresContratsGtIEP" onError="TechnicalExceptionSEQ" protocol="file" sequence="AssuresContratsGtSEQ" suspend="false" xmlns="http://ws.apache.org/ns/synapse"&gt;
      &lt;parameters&gt;
          &lt;parameter name="interval"&gt;5000&lt;/parameter&gt;
          &lt;parameter name="sequential"&gt;true&lt;/parameter&gt;
          &lt;parameter name="coordination"&gt;true&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.FileProcessCount"&gt;2&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.ContentType"&gt;application/binary;charset=UTF-8&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.LockReleaseSameNode"&gt;false&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.AutoLockRelease"&gt;false&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.ActionAfterFailure"&gt;MOVE&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.ActionAfterProcess"&gt;MOVE&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.FileURI"&gt;/home/istya/Flux/REF_PERS/Input/&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.MoveAfterFailure"&gt;/home/istya/Flux/REF_PERS/Failure/&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.DistributedLock"&gt;false&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.FileNamePattern"&gt;.*ASSURES_CONTRATS_GT.*.csv&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.MoveAfterProcess"&gt;/home/istya/Flux/REF_PERS/Process/&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.Locking"&gt;disable&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.FileSortAttribute"&gt;none&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.FileSortAscending"&gt;true&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.CreateFolder"&gt;true&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.Streaming"&gt;true&lt;/parameter&gt;
          &lt;parameter name="transport.vfs.Build"&gt;false&lt;/parameter&gt;
      &lt;/parameters&gt;
  &lt;/inboundEndpoint&gt;
  </code></pre>
  
  <p>When I change the sequential parameter to "false", the program crashes: first mediator on the sequence says that the file does not exist (although the file is still in the polling folder...).</p>
  
  <p>Does anyone knows how to process multiple files with the same inbound and sequences in WSO2 ESB ? Is it possible or do we need to install a cluster of ESB ?</p>
  
  <p>Thanks for your support !
  Julien</p>