title: MuleRequester deleting file after reading
body: <p>Following is my mule configuration.</p>
  
  <pre><code>&lt;mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
  xmlns:spring="http://www.springframework.org/schema/beans"
  xmlns:quartz="http://www.mulesoft.org/schema/mule/quartz" xmlns:http="http://www.mulesoft.org/schema/mule/http"
  xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns:test="http://www.mulesoft.org/schema/mule/test"
  xmlns:file="http://www.mulesoft.org/schema/mule/file"
  xmlns:mulerequester="http://www.mulesoft.org/schema/mule/mulerequester"
  xsi:schemaLocation="http://www.mulesoft.org/schema/mule/quartz http://www.mulesoft.org/schema/mule/quartz/current/mule-quartz.xsd
  </code></pre>
  
  <p><a href="http://www.mulesoft.org/schema/mule/test" rel="nofollow">http://www.mulesoft.org/schema/mule/test</a>      <a href="http://www.mulesoft.org/schema/mule/test/3.6/mule-test.xsd" rel="nofollow">http://www.mulesoft.org/schema/mule/test/3.6/mule-test.xsd</a>
  <a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow">http://www.mulesoft.org/schema/mule/core</a> <a href="http://www.mulesoft.org/schema/mule/core/3.6/mule.xsd" rel="nofollow">http://www.mulesoft.org/schema/mule/core/3.6/mule.xsd</a>
  <a href="http://www.mulesoft.org/schema/mule/vm" rel="nofollow">http://www.mulesoft.org/schema/mule/vm</a> <a href="http://www.mulesoft.org/schema/mule/vm/3.6/mule-vm.xsd" rel="nofollow">http://www.mulesoft.org/schema/mule/vm/3.6/mule-vm.xsd</a>
  <a href="http://www.mulesoft.org/schema/mule/http" rel="nofollow">http://www.mulesoft.org/schema/mule/http</a> <a href="http://www.mulesoft.org/schema/mule/http/3.6/mule-http.xsd" rel="nofollow">http://www.mulesoft.org/schema/mule/http/3.6/mule-http.xsd</a>
  <a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a> <a href="http://www.springframework.org/schema/beans/spring-beans-current.xsd" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-current.xsd</a>
  <a href="http://www.mulesoft.org/schema/mule/mulerequester" rel="nofollow">http://www.mulesoft.org/schema/mule/mulerequester</a> <a href="http://www.mulesoft.org/schema/mule/mulerequester/1.0-SNAPSHOT/mule-mulerequester.xsd" rel="nofollow">http://www.mulesoft.org/schema/mule/mulerequester/1.0-SNAPSHOT/mule-mulerequester.xsd</a>
  <a href="http://www.mulesoft.org/schema/mule/file" rel="nofollow">http://www.mulesoft.org/schema/mule/file</a> <a href="http://www.mulesoft.org/schema/mule/file/3.6/mule-file.xsd" rel="nofollow">http://www.mulesoft.org/schema/mule/file/3.6/mule-file.xsd</a>">
      
      
      
      
          
              
          
      
      
          
              
          
          
              
          </p>
  
  <pre><code>    &lt;vm:outbound-endpoint exchange-pattern="one-way"
          path="oozieQueue" doc:name="Trigger workflow" /&gt;
  
  &lt;/flow&gt;
  &lt;flow name="oozie-workflow-manager" doc:name="oozie-workflow-manager"&gt;
      &lt;vm:inbound-endpoint exchange-pattern="one-way"
          path="oozieQueue" doc:name="VM" /&gt;
  
      &lt;foreach collection="#[payload.items()]" counterVariableName="counter"&gt;
          &lt;choice doc:name="Choice"&gt;
              &lt;when expression="#[payload.status == CampaignStatus.NOT_STARTED]"&gt;
                  &lt;mulerequester:request config-ref="Mule_Requester"
                      resource="file://#[payload.fileName]" returnClass="java.lang.String"  doc:name="Request a message from a queue" /&gt;
                  &lt;logger level="ERROR" message="Payload is : #[message.payload]" /&gt;
                  &lt;enricher  target="#[variable:jsonResponse]"&gt;                   
                      &lt;http:outbound-endpoint exchange-pattern="request-response"
                          address="http://abc.xyz.com:11000/oozie/v2/jobs?action=start"
                           method="POST" doc:name="HTTP"
                          contentType="application/xml;charset=UTF-8" /&gt;
                  &lt;/enricher&gt;
                  &lt;choice doc:name="Choice"&gt;
                      &lt;when expression="#[message.inboundProperties['http.status'] == 201]"&gt;
                          &lt;component doc:name="Java"&gt;
                              &lt;singleton-object
                                  class="com.xyz.alertcampaign.appworkflow.JobUpdater" /&gt;
                          &lt;/component&gt;
                      &lt;/when&gt;
                      &lt;otherwise&gt;
                          &lt;logger level="ERROR" message="Error occurred on creating Job in OOzie " /&gt;
                      &lt;/otherwise&gt;
                  &lt;/choice&gt;
              &lt;/when&gt;
              &lt;when
                  expression="#[payload.status == CampaignStatus.UPDATED || payload.status == CampaignStatus.EXPIRED]"&gt;
                  &lt;logger level="ERROR" message="#[payload.status]" /&gt;
                  &lt;http:outbound-endpoint exchange-pattern="request-response"
                      method="PUT"
                      address="http://localhost:8080/oozie/v1/job/#[payload.jobId]?action=kill"
                      responseTransformer-refs="httptoobj" doc:name="HTTP" /&gt;
                  &lt;choice doc:name="Choice"&gt;
                      &lt;when expression="#[message.inboundProperties['http.status'] == 200]"&gt;
                          &lt;component doc:name="Java"&gt;
                              &lt;singleton-object
                                  class="com.xyx.alertcampaign.appworkflow.JobUpdater" /&gt;
                          &lt;/component&gt;
                      &lt;/when&gt;
                      &lt;otherwise&gt;
                          &lt;logger level="ERROR" message="Error occurred on killing Job in OOzie " /&gt;
                      &lt;/otherwise&gt;
                  &lt;/choice&gt;
              &lt;/when&gt;
          &lt;/choice&gt;
      &lt;/foreach&gt;
  &lt;/flow&gt;
  </code></pre>
  
  <p> </p>
  
  <p>I have a symbolic link for the file path . But both the symbolic link and the file is getting deleted after MuleRequester is done.</p>