Alternatively, you could remove until-successful and use an inbound VM or JMS endpoint with transactional delivery to perform retries on the outbound FTP endpoint.

could you please provide me the example on this with VM?

this related to below question

1

There are 1 answers

6
Sudarshan On

How about try something like the below

<flow name="transactionalVM">
    <vm:inbound-endpoint path="orders" exchange-pattern="one-way">
        <vm:transaction action="ALWAYS_BEGIN"/>
     </vm:inbound-endpoint>
     <file:outbound-endpoint ref="receivedOrders"/> <!-- replace this with your FTP endpoint -->
</flow>

Look at transaction management in Mule to figure out how the retries can be controlled, right now its going to try endlessly

Now if you are wondering how the file outbound is part of the transaction have a look at this (Configuration Tips and Tricks) and this, hint here