title: How to schedule a service using Quartz component that will invoke a file uploader on a periodic basis?
body: <p>This is an extension of my previous question <a href="https://stackoverflow.com/questions/14457455/how-to-upload-multiple-files-via-rest-over-http-using-mule/14466425#14466425">How to upload multiple files via REST over HTTP using Mule?</a>. The requirement say that, on every Wednesday at 10AM the files has to be uploaded. Henceforth I need a scheduler for accomplishing this. And I found that the solution is &quot;Quartz&quot; inbound component with Cron Expression.</p>
  <p>But how can I do so? Because I cannot have two &quot;inbound-endpoint&quot;.(quartz and file)  e.g.</p>
  <pre><code>&lt;flow name=&quot;fileUploader&quot; doc:name=&quot;fileUploader&quot;&gt;
  
      &lt;quartz:inbound-endpoint 
          jobName=&quot;myServiceJob&quot; 
          repeatInterval=&quot;5000&quot; 
          cronExpression=&quot;0 0 10 ? * WED 
          doc:name=&quot;Quartz&quot;&gt;
          &lt;quartz:event-generator-job/&gt;
     &lt;/quartz:inbound-endpoint&gt;
         
          &lt;file:inbound-endpoint 
              path=&quot;C:\input&quot;
              pollingFrequency=&quot;5000&quot; moveToDirectory=&quot;C:\movehere&quot; doc:name=&quot;File&quot;
              responseTimeout=&quot;10000&quot;/&gt;
              
      &lt;object-to-byte-array-transformer doc:name=&quot;Object to Byte Array&quot;/&gt;
  
      &lt;file:outbound-endpoint 
              path=&quot;C:\outputfile&quot; 
              responseTimeout=&quot;10000&quot; 
              doc:name=&quot;File&quot;/&gt;
  
  &lt;/flow&gt;
  </code></pre>
  <p>If I run I get error</p>
  <p><strong>Exception in thread &quot;main&quot; org.mule.module.launcher.DeploymentInitException: SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'file:inbound-endpoint'.</strong></p>
  <p>So what is the change that I need to do?</p>
  <p>Please help</p>