Computing Magazine

Mule File Inbound Infinite Loop

Posted on the 12 June 2014 by Abhishek Somani @somaniabhi
Mule file inbound end point is going in to infinite loop if we use custom queued-asynchronous-processing-strategy . It keeps on acquiring the lock on the same file and does nothing . I am using mule version 3.3.1 . Here's the mule xml file :

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="CE-3.3.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd ">
<file:connector name="myFileConnector" doc:name="File">
<!-- <service-overrides messageReceiver="InputFileMessageReceiver"/> -->
</file:connector>
<queued-asynchronous-processing-strategy name="allow2Threads" maxThreads="2"/>
<flow name="fileInboundTestFlow1" doc:name="fileInboundTestFlow1" processingStrategy="allow2Threads">
<file:inbound-endpoint path="E:/fileTest" responseTimeout="10000" doc:name="File" pollingFrequency="50" connector-ref="myFileConnector" >
</file:inbound-endpoint>
<byte-array-to-object-transformer doc:name="Byte Array to Object"/>
<component class="SleepComponent" doc:name="sleep"/>
</flow>

</mule>
Is it a bug ? Mule File Inbound Infinite loop

Back to Featured Articles on Logo Paperblog

Magazines